mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 04:45:24 +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;
|
return isUsingSticksToArm;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool areSticksInApModePosition(uint16_t ap_mode)
|
|
||||||
{
|
|
||||||
return fabsf(rcCommand[ROLL]) < ap_mode && fabsf(rcCommand[PITCH]) < ap_mode;
|
|
||||||
}
|
|
||||||
|
|
||||||
throttleStatus_e calculateThrottleStatus(void)
|
throttleStatus_e calculateThrottleStatus(void)
|
||||||
{
|
{
|
||||||
if (featureIsEnabled(FEATURE_3D)) {
|
if (featureIsEnabled(FEATURE_3D)) {
|
||||||
|
@ -416,10 +411,6 @@ void processRcStickPositions(void)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t getRcStickDeflection(int32_t axis, uint16_t midrc) {
|
|
||||||
return MIN(abs((int32_t)rcData[axis] - midrc), 500);
|
|
||||||
}
|
|
||||||
|
|
||||||
void rcControlsInit(void)
|
void rcControlsInit(void)
|
||||||
{
|
{
|
||||||
analyzeModeActivationConditions();
|
analyzeModeActivationConditions();
|
||||||
|
|
|
@ -139,11 +139,9 @@ PG_DECLARE(armingConfig_t, armingConfig);
|
||||||
|
|
||||||
bool areUsingSticksToArm(void);
|
bool areUsingSticksToArm(void);
|
||||||
|
|
||||||
bool areSticksInApModePosition(uint16_t ap_mode);
|
|
||||||
throttleStatus_e calculateThrottleStatus(void);
|
throttleStatus_e calculateThrottleStatus(void);
|
||||||
void processRcStickPositions();
|
void processRcStickPositions();
|
||||||
|
|
||||||
bool isUsingSticksForArming(void);
|
bool isUsingSticksForArming(void);
|
||||||
|
|
||||||
int32_t getRcStickDeflection(int32_t axis, uint16_t midrc);
|
|
||||||
void rcControlsInit(void);
|
void rcControlsInit(void);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue