ArduPilot / MissionPlanner

Mission Planner Ground Control Station for ArduPilot (c# .net)
http://ardupilot.org/planner/
GNU General Public License v3.0
1.79k stars 2.42k forks source link

Allow user to level vehicle by sending PREFLIGHT_CALIBRATION with param5=2 #905

Open rmackay9 opened 9 years ago

rmackay9 commented 9 years ago

AC3.3 and some recent version of Plane supports leveling the accelerometers to the vehicle's current attitude if the PREFLIGHT_CALIBRATION message is sent with param5 = 2.0.

Code in Copter: https://github.com/diydrones/ardupilot/blob/master/ArduCopter/GCS_Mavlink.cpp#L1264

Closed issue in ardupilot to add this support for the vehicles: https://github.com/diydrones/ardupilot/issues/1856

Commit from Tridge that added this support to copter: https://github.com/diydrones/ardupilot/commit/aac652a1b40916612e6895e3e61b0e38d0abd879

meee1 commented 9 years ago

https://github.com/diydrones/MissionPlanner/commit/4f6c9182cee82488c3e9508b213c18c38585ab59

rmackay9 commented 9 years ago

Thanks!