Browse Source

AP_Mission: Change from division to multiplication

apm_2208
murata 3 years ago committed by Andrew Tridgell
parent
commit
db7fe2ba4e
  1. 2
      libraries/AP_Mission/AP_Mission.cpp

2
libraries/AP_Mission/AP_Mission.cpp

@ -1648,7 +1648,7 @@ bool AP_Mission::mission_cmd_to_mavlink_int(const AP_Mission::Mission_Command& c @@ -1648,7 +1648,7 @@ bool AP_Mission::mission_cmd_to_mavlink_int(const AP_Mission::Mission_Command& c
packet.x = cmd.content.location.lat;
packet.y = cmd.content.location.lng;
packet.z = cmd.content.location.alt / 100.0f; // cmd alt in cm to m
packet.z = cmd.content.location.alt * 0.01f; // cmd alt in cm to m
if (cmd.content.location.relative_alt) {
packet.frame = MAV_FRAME_GLOBAL_RELATIVE_ALT;
} else {

Loading…
Cancel
Save