Skip to content

Commit fc15204

Browse files
Vehicle.cc: After latest mavlink version we can use CMDs in development.xml
1 parent 43ca6d3 commit fc15204

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Vehicle/Vehicle.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4008,7 +4008,7 @@ void Vehicle::requestOperatorControl(bool allowOverride, int requestTimeoutSecs)
40084008
safeRequestTimeoutSecs = SettingsManager::instance()->flyViewSettings()->requestControlTimeout()->cookedDefaultValue().toInt();
40094009
}
40104010
sendMavCommand(_defaultComponentId,
4011-
MAV_CMD(32100), // MAV_CMD_REQUEST_OPERATOR_CONTROL
4011+
MAV_CMD_REQUEST_OPERATOR_CONTROL,
40124012
false, // Don't show errors, as per Mavlink control protocol Autopilot will report result failed prior to forwarding the request to the GCS in control.
40134013
0, // System ID of GCS requesting control, 0 if it is this GCS
40144014
1, // Action - 0: Release control, 1: Request control.
@@ -4088,7 +4088,7 @@ void Vehicle::_handleCommandLong(const mavlink_message_t& message)
40884088
if (commandLong.target_system != MAVLinkProtocol::instance()->getSystemId()) {
40894089
return;
40904090
}
4091-
if (commandLong.command == MAV_CMD(32100)) { // MAV_CMD_REQUEST_OPERATOR_CONTROL
4091+
if (commandLong.command == MAV_CMD_REQUEST_OPERATOR_CONTROL) {
40924092
_handleCommandRequestOperatorControl(commandLong);
40934093
}
40944094
}

0 commit comments

Comments
 (0)