Hi,
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.
Thanks.

Permalink Reply by Michael Pursifull on June 19, 2012 at 10:06am 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.
Permalink Reply by Aizzat on June 19, 2012 at 10:14am Hi Mike,
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?

Permalink Reply by Michael Pursifull on June 19, 2012 at 10:20am 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.
Permalink Reply by Aizzat on June 19, 2012 at 10:32am Hi Mike,
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.
Regards,
Aizzat
Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.24 members
1295 members
688 members
185 members
51 members
© 2013 Created by Chris Anderson.
Powered by
