Skip to content

Commit

Permalink
AP_Mission: Change division to multiplication
Browse files Browse the repository at this point in the history
  • Loading branch information
muramura committed May 1, 2024
1 parent 54d117b commit 5d0ab66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_Mission/AP_Mission.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1813,7 +1813,7 @@ bool AP_Mission::mission_cmd_to_mavlink_int(const AP_Mission::Mission_Command& c

#if AP_MISSION_NAV_PAYLOAD_PLACE_ENABLED
case MAV_CMD_NAV_PAYLOAD_PLACE:
packet.param1 = cmd.p1/100.0f; // copy max-descend parameter (cm->m)
packet.param1 = cmd.p1*0.01f; // copy max-descend parameter (cm->m)
break;
#endif

Expand Down

0 comments on commit 5d0ab66

Please sign in to comment.