1
0
Fork 0
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:
ctzsnooze 2023-03-23 10:08:52 +11:00 committed by GitHub
parent 26eaaaee6a
commit 08db8745ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 11 deletions

View file

@ -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();