mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-14 03:50:02 +03:00
Remove getRcStickDeflection and areSticksInApModePosition (#12198)
* remove unused areSticksInApModePosition * remove getRcStickDeflection
This commit is contained in:
parent
26eaaaee6a
commit
08db8745ed
2 changed files with 0 additions and 11 deletions
|
@ -105,11 +105,6 @@ bool isUsingSticksForArming(void)
|
|||
return isUsingSticksToArm;
|
||||
}
|
||||
|
||||
bool areSticksInApModePosition(uint16_t ap_mode)
|
||||
{
|
||||
return fabsf(rcCommand[ROLL]) < ap_mode && fabsf(rcCommand[PITCH]) < ap_mode;
|
||||
}
|
||||
|
||||
throttleStatus_e calculateThrottleStatus(void)
|
||||
{
|
||||
if (featureIsEnabled(FEATURE_3D)) {
|
||||
|
@ -416,10 +411,6 @@ void processRcStickPositions(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
int32_t getRcStickDeflection(int32_t axis, uint16_t midrc) {
|
||||
return MIN(abs((int32_t)rcData[axis] - midrc), 500);
|
||||
}
|
||||
|
||||
void rcControlsInit(void)
|
||||
{
|
||||
analyzeModeActivationConditions();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue