1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00

Merge pull request #11887 from KarateBrot/styledef

Remove old style definitions
This commit is contained in:
haslinghuis 2022-10-16 00:22:02 +02:00 committed by GitHub
commit 7e441b5f4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
57 changed files with 119 additions and 117 deletions

View file

@ -1011,7 +1011,7 @@ TEST(ArmingPreventionTest, Paralyze)
// expect
EXPECT_TRUE(IS_RC_MODE_ACTIVE(BOXVTXPITMODE));
EXPECT_TRUE(IS_RC_MODE_ACTIVE(BOXBEEPERON));
// given
// try exiting paralyze mode and ensure arming and pit mode are still disabled
rcData[AUX2] = 1000;
@ -1098,7 +1098,7 @@ extern "C" {
float scaleRangef(float, float, float, float, float) { return 0.0f; }
bool crashRecoveryModeActive(void) { return false; }
int32_t getEstimatedAltitudeCm(void) { return 0; }
bool gpsIsHealthy() { return false; }
bool gpsIsHealthy(void) { return false; }
float getCosTiltAngle(void) { return 0.0f; }
void pidSetItermReset(bool) {}
void applyAccelerometerTrimsDelta(rollAndPitchTrims_t*) {}

View file

@ -514,7 +514,7 @@ extern "C" {
void failsafeOnValidDataReceived(void) { }
void failsafeOnValidDataFailed(void) { }
void pinioBoxTaskControl(void) { }
bool taskUpdateRxMainInProgress() { return true; }
bool taskUpdateRxMainInProgress(void) { return true; }
void schedulerIgnoreTaskStateTime(void) { }
void schedulerIgnoreTaskExecRate(void) { }
bool schedulerGetIgnoreTaskExecTime() { return false; }

View file

@ -79,7 +79,7 @@ extern "C" {
float getMotorMixRange(void) { return simulatedMotorMixRange; }
float getSetpointRate(int axis) { return simulatedSetpointRate[axis]; }
bool isAirmodeActivated() { return simulatedAirmodeEnabled; }
bool isAirmodeActivated(void) { return simulatedAirmodeEnabled; }
float getRcDeflectionAbs(int axis) { return fabsf(simulatedRcDeflection[axis]); }
void systemBeep(bool) { }
bool gyroOverflowDetected(void) { return false; }

View file

@ -113,7 +113,7 @@ void failsafeOnRxSuspend(uint32_t ) {}
void failsafeOnRxResume(void) {}
bool failsafeIsActive(void) { return false; }
bool failsafeIsReceivingRxData(void) { return true; }
bool taskUpdateRxMainInProgress() { return true; }
bool taskUpdateRxMainInProgress(void) { return true; }
void setArmingDisabled(armingDisableFlags_e flag) { UNUSED(flag); }
void unsetArmingDisabled(armingDisableFlags_e flag) { UNUSED(flag); }
uint16_t flightModeFlags = 0;

View file

@ -245,7 +245,7 @@ extern "C" {
void rxPwmInit(const rxConfig_t *, rxRuntimeState_t *) {}
void setArmingDisabled(armingDisableFlags_e flag) { UNUSED(flag); }
void unsetArmingDisabled(armingDisableFlags_e flag) { UNUSED(flag); }
bool taskUpdateRxMainInProgress() { return true; }
bool taskUpdateRxMainInProgress(void) { return true; }
float pt1FilterGain(float f_cut, float dT)
{
UNUSED(f_cut);