I just bought my APM2.0 and I am new here. I managed to verify my board is working by using Mission Planner to check the sensors (gyro, accelerometer). But somehow, I plan not to use Mission Planner to check or debug the output from the APM2.0.
Is there any source code that others has developed that I could modify to read the sensor data from APM2.0 and display the output (maybe just showing at serial terminal)?
I am stuck with this. Your help is much appreciated.
Connect over serial. 115200k for usb, 56k when using 3DR or Xbee radios.
There is a completely functional command line interface. It includes a "test" mode, where you can review the output of your various onboard sensors.
Of course most of the sensor data is also available in the telemetry stream, if you have any MAVLink capable program.
Let me clarify with you, if I connect using XBEE from APM2.0, then I need to set the baut rate to 56k. If I already compiled the ArduPlane firmware, then I developed my own software (for example; visual basic that communicates using serial port to another XBEE in my computer) will I be able to capture all the sensor reading from APM2.0 to my software?
Yes. If you build this application, grab some libraries for MAVLink. Using the serial interface is only helpful for manual interaction, not as an API. If you want to access all the sensor data at the same time (rather than just one sensor at a time, in a "test" mode) you will want to use MAVLink.
Oh, seems like MAVLink is useful for IMU and sensor reading when running the autonomous vehicle on the go. So I need to include my software with MAVLink library too.
Thank a lot for your explanation and direct me to the useful link! Really appreciate that.