mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Plane: use handle_rc_bind
This commit is contained in:
parent
792f3b8a15
commit
6878a9a270
@ -1278,12 +1278,7 @@ void GCS_MAVLINK_Plane::handleMessage(mavlink_message_t* msg)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case MAV_CMD_START_RX_PAIR:
|
case MAV_CMD_START_RX_PAIR:
|
||||||
// initiate bind procedure
|
result = handle_rc_bind(packet);
|
||||||
if (!hal.rcin->rc_bind(packet.param1)) {
|
|
||||||
result = MAV_RESULT_FAILED;
|
|
||||||
} else {
|
|
||||||
result = MAV_RESULT_ACCEPTED;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MAV_CMD_NAV_LOITER_UNLIM:
|
case MAV_CMD_NAV_LOITER_UNLIM:
|
||||||
|
Loading…
Reference in New Issue
Block a user