mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +03:00
Moved masterConfig throttle correction items into a struct
This commit is contained in:
parent
18b052e246
commit
84467ea0e1
5 changed files with 14 additions and 9 deletions
|
@ -719,8 +719,8 @@ void createDefaultConfig(master_t *config)
|
|||
|
||||
resetRcControlsConfig(&config->rcControlsConfig);
|
||||
|
||||
config->throttle_correction_value = 0; // could 10 with althold or 40 for fpv
|
||||
config->throttle_correction_angle = 800; // could be 80.0 deg with atlhold or 45.0 for fpv
|
||||
config->throttleCorrectionConfig.throttle_correction_value = 0; // could 10 with althold or 40 for fpv
|
||||
config->throttleCorrectionConfig.throttle_correction_angle = 800; // could be 80.0 deg with atlhold or 45.0 for fpv
|
||||
|
||||
// Failsafe Variables
|
||||
config->failsafeConfig.failsafe_delay = 10; // 1sec
|
||||
|
@ -867,7 +867,7 @@ void activateConfig(void)
|
|||
&imuRuntimeConfig,
|
||||
¤tProfile->pidProfile,
|
||||
&masterConfig.accDeadband,
|
||||
masterConfig.throttle_correction_angle
|
||||
masterConfig.throttleCorrectionConfig.throttle_correction_angle
|
||||
);
|
||||
|
||||
configureAltitudeHold(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue