Skip to content

Commit

Permalink
bind RC use enums
Browse files Browse the repository at this point in the history
  • Loading branch information
benjinne committed Nov 16, 2024
1 parent cb28fc0 commit 2a8bcdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AutoPilotPlugins/Common/RadioComponentController.cc
Original file line number Diff line number Diff line change
Expand Up @@ -605,12 +605,12 @@ void RadioComponentController::_setInternalCalibrationValuesFromParameters(void)

void RadioComponentController::spektrumBindMode(int mode)
{
_vehicle->pairRX(0, mode);
_vehicle->pairRX(RC_TYPE_SPEKTRUM, mode);
}

void RadioComponentController::crsfBindMode()
{
_vehicle->pairRX(1, 0);
_vehicle->pairRX(RC_TYPE_CRSF, 0);
}

/// @brief Validates the current settings against the calibration rules resetting values as necessary.
Expand Down

0 comments on commit 2a8bcdf

Please sign in to comment.