Fixed tests.

This commit is contained in:
mikeller 2018-07-10 17:37:51 +12:00
parent 6de1c32d9d
commit 8a72362a67
5 changed files with 5 additions and 4 deletions

View File

@ -415,7 +415,7 @@ void validateAndFixGyroConfig(void)
#ifdef USE_GYRO_DATA_ANALYSE
// Disable dynamic filter if gyro loop is less than 2KHz
if (gyro.targetLooptime > DYNAMIC_FILTER_MAX_SUPPORTED_LOOP_TIME) {
featureClear(FEATURE_DYNAMIC_FILTER);
featureDisable(FEATURE_DYNAMIC_FILTER);
}
#endif

View File

@ -849,7 +849,7 @@ bool processRx(timeUs_t currentTimeUs)
}
#endif
pidSetAntiGravityState(IS_RC_MODE_ACTIVE(BOXANTIGRAVITY) || feature(FEATURE_ANTI_GRAVITY));
pidSetAntiGravityState(IS_RC_MODE_ACTIVE(BOXANTIGRAVITY) || featureIsEnabled(FEATURE_ANTI_GRAVITY));
return true;
}

View File

@ -318,7 +318,7 @@ void fcTasksInit(void)
setTaskEnabled(TASK_TRANSPONDER, featureIsEnabled(FEATURE_TRANSPONDER));
#endif
#ifdef USE_OSD
setTaskEnabled(TASK_OSD, featureIsEnabled(FEATURE_OSD) && osdInitialized()));
setTaskEnabled(TASK_OSD, featureIsEnabled(FEATURE_OSD) && osdInitialized());
#endif
#ifdef USE_BST
setTaskEnabled(TASK_BST_MASTER_PROCESS, true);

View File

@ -332,7 +332,7 @@ static void initSmartPortSensors(void)
if (isBatteryVoltageConfigured()) {
#ifdef USE_ESC_SENSOR
if (!featureIsEnabled(FEATURE_ESC_SENSOR)) {
if (!reportExtendedEscSensors())
#endif
{
ADD_SENSOR(FSSP_DATAID_VFAS);

View File

@ -210,6 +210,7 @@ uint8_t getCurrentControlRateProfileIndex(void){ return 1; }
void changeControlRateProfile(uint8_t) {}
void resetAllRxChannelRangeConfigurations(rxChannelRangeConfig_t *) {}
void writeEEPROM() {}
void writeEEPROMWithFeatures(uint32_t) {}
serialPortConfig_t *serialFindPortConfiguration(serialPortIdentifier_e) {return NULL; }
baudRate_e lookupBaudRateIndex(uint32_t){return BAUD_9600; }
serialPortUsage_t *findSerialPortUsageByIdentifier(serialPortIdentifier_e){ return NULL; }