mirror of https://github.com/ArduPilot/ardupilot
AP_Mission: Change from division to multiplication
This commit is contained in:
parent
ae896ff8c2
commit
db7fe2ba4e
|
@ -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…
Reference in New Issue