mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 22:35:23 +03:00
Fixed unit tests.
This commit is contained in:
parent
d93218f21c
commit
f380c3d774
3 changed files with 3 additions and 12 deletions
|
@ -235,11 +235,6 @@ bool sensors(uint32_t mask)
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
bool feature(uint32_t mask) {
|
|
||||||
UNUSED(mask);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
uint32_t millis(void) { return 0; }
|
uint32_t millis(void) { return 0; }
|
||||||
uint32_t micros(void) { return 0; }
|
uint32_t micros(void) { return 0; }
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,7 @@ extern "C" {
|
||||||
#include "common/maths.h"
|
#include "common/maths.h"
|
||||||
#include "common/axis.h"
|
#include "common/axis.h"
|
||||||
|
|
||||||
|
#include "config/parameter_group.h"
|
||||||
#include "config/parameter_group_ids.h"
|
#include "config/parameter_group_ids.h"
|
||||||
|
|
||||||
#include "blackbox/blackbox.h"
|
#include "blackbox/blackbox.h"
|
||||||
|
@ -250,7 +251,7 @@ protected:
|
||||||
adjustmentStateMask = 0;
|
adjustmentStateMask = 0;
|
||||||
memset(&adjustmentStates, 0, sizeof(adjustmentStates));
|
memset(&adjustmentStates, 0, sizeof(adjustmentStates));
|
||||||
|
|
||||||
PG_RESET_CURRENT(rxConfig);
|
PG_RESET(rxConfig);
|
||||||
rxConfigMutable()->mincheck = DEFAULT_MIN_CHECK;
|
rxConfigMutable()->mincheck = DEFAULT_MIN_CHECK;
|
||||||
rxConfigMutable()->maxcheck = DEFAULT_MAX_CHECK;
|
rxConfigMutable()->maxcheck = DEFAULT_MAX_CHECK;
|
||||||
rxConfigMutable()->midrc = 1500;
|
rxConfigMutable()->midrc = 1500;
|
||||||
|
@ -307,7 +308,7 @@ TEST_F(RcControlsAdjustmentsTest, processRcAdjustmentsWithRcRateFunctionSwitchUp
|
||||||
};
|
};
|
||||||
|
|
||||||
// and
|
// and
|
||||||
PG_RESET_CURRENT(rxConfig);
|
PG_RESET(rxConfig);
|
||||||
rxConfigMutable()->mincheck = DEFAULT_MIN_CHECK;
|
rxConfigMutable()->mincheck = DEFAULT_MIN_CHECK;
|
||||||
rxConfigMutable()->maxcheck = DEFAULT_MAX_CHECK;
|
rxConfigMutable()->maxcheck = DEFAULT_MAX_CHECK;
|
||||||
rxConfigMutable()->midrc = 1500;
|
rxConfigMutable()->midrc = 1500;
|
||||||
|
|
|
@ -217,10 +217,5 @@ void failsafeOnValidDataFailed(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IS_RC_MODE_ACTIVE(boxId_e)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue