mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
LP-550 Allow Txpid builtin
This commit is contained in:
parent
8935906fca
commit
d58c0b11b9
@ -100,8 +100,11 @@ static float scale(float val, float inMin, float inMax, float outMin, float outM
|
||||
int32_t TxPIDInitialize(void)
|
||||
{
|
||||
bool txPIDEnabled;
|
||||
HwSettingsOptionalModulesData optionalModules;
|
||||
|
||||
#ifdef MODULE_TXPID_BUILTIN
|
||||
txPIDEnabled = true;
|
||||
#else
|
||||
HwSettingsOptionalModulesData optionalModules;
|
||||
HwSettingsOptionalModulesGet(&optionalModules);
|
||||
|
||||
if (optionalModules.TxPID == HWSETTINGS_OPTIONALMODULES_ENABLED) {
|
||||
@ -109,6 +112,7 @@ int32_t TxPIDInitialize(void)
|
||||
} else {
|
||||
txPIDEnabled = false;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (txPIDEnabled) {
|
||||
TxPIDStatusInitialize();
|
||||
|
Loading…
Reference in New Issue
Block a user