Skip to content

Commit

Permalink
Standard modes protocol now available in all builds
Browse files Browse the repository at this point in the history
  • Loading branch information
DonLakeFlyer committed Feb 3, 2025
1 parent 6f929ec commit 788947b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/Vehicle/StandardModes.cc
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ void StandardModes::ensureUniqueModeNames()

void StandardModes::request()
{
#ifdef QGC_DAILY_BUILD // Disable use of development/WIP MAVLink messages for release builds
if (_requestActive) {
// If we are in the middle of waiting for a request, wait for the response first
_wantReset = true;
Expand All @@ -135,9 +134,6 @@ void StandardModes::request()
qCDebug(StandardModesLog) << "Requesting available modes";
// Request one at a time. This could be improved by requesting all, but we can't use Vehicle::requestMessage for that
StandardModes::requestMode(1);
#else
emit requestCompleted();
#endif // QGC_DAILY_BUILD
}

void StandardModes::requestMode(int modeIndex)
Expand Down
2 changes: 0 additions & 2 deletions src/Vehicle/Vehicle.cc
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,6 @@ void Vehicle::_mavlinkMessageReceived(LinkInterface* link, mavlink_message_t mes
}
}
break;
#ifdef QGC_DAILY_BUILD // Disable use of development/WIP MAVLink messages for release builds
case MAVLINK_MSG_ID_AVAILABLE_MODES_MONITOR:
{
// Avoid duplicate requests during initial connection setup
Expand All @@ -622,7 +621,6 @@ void Vehicle::_mavlinkMessageReceived(LinkInterface* link, mavlink_message_t mes
case MAVLINK_MSG_ID_CURRENT_MODE:
_handleCurrentMode(message);
break;
#endif // QGC_DAILY_BUILD

// Following are ArduPilot dialect messages
#if !defined(QGC_NO_ARDUPILOT_DIALECT)
Expand Down

0 comments on commit 788947b

Please sign in to comment.