Skip to content

Commit

Permalink
AP_Mission: add comment about new fence API
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp1per committed Jan 13, 2024
1 parent 1b2e8b5 commit d507d47
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libraries/AP_Mission/AP_Mission.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,8 @@ MAV_MISSION_RESULT AP_Mission::mavlink_int_to_mission_cmd(const mavlink_mission_
break;

case MAV_CMD_DO_FENCE_ENABLE: // MAV ID: 207
cmd.p1 = packet.param1; // action 0=disable, 1=enable
cmd.p1 = packet.param1; // action 0=disable, 1=enable, 2=disable floor
// packet.param2; // bitmask see FENCE_TYPE enum
break;

case MAV_CMD_DO_AUX_FUNCTION:
Expand Down Expand Up @@ -1692,7 +1693,7 @@ bool AP_Mission::mission_cmd_to_mavlink_int(const AP_Mission::Mission_Command& c
break;

case MAV_CMD_DO_FENCE_ENABLE: // MAV ID: 207
packet.param1 = cmd.p1; // action 0=disable, 1=enable
packet.param1 = cmd.p1; // action 0=disable, 1=enable, 2=disable floor, 3=enable except floor
break;

case MAV_CMD_DO_PARACHUTE: // MAV ID: 208
Expand Down

0 comments on commit d507d47

Please sign in to comment.