AP_Mission: Change from division to multiplication

This commit is contained in:
murata 2022-03-12 02:36:41 +09:00 committed by Andrew Tridgell
parent ae896ff8c2
commit db7fe2ba4e
1 changed files with 1 additions and 1 deletions

View File

@ -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 {