mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
Plane: added DSM bind support
This commit is contained in:
parent
a3ddc49a70
commit
5b34fa4f6a
@ -1066,6 +1066,15 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
|
|||||||
|
|
||||||
switch(packet.command) {
|
switch(packet.command) {
|
||||||
|
|
||||||
|
case MAV_CMD_START_RX_PAIR:
|
||||||
|
// initiate bind procedure
|
||||||
|
if (!hal.rcin->rc_bind(packet.param1)) {
|
||||||
|
result = MAV_RESULT_FAILED;
|
||||||
|
} else {
|
||||||
|
result = MAV_RESULT_ACCEPTED;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case MAV_CMD_NAV_LOITER_UNLIM:
|
case MAV_CMD_NAV_LOITER_UNLIM:
|
||||||
plane.set_mode(LOITER);
|
plane.set_mode(LOITER);
|
||||||
result = MAV_RESULT_ACCEPTED;
|
result = MAV_RESULT_ACCEPTED;
|
||||||
|
Loading…
Reference in New Issue
Block a user