1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Convert digital offset to percentage

Bump EEPROM

Fix rounding
This commit is contained in:
borisbstyle 2016-11-30 00:43:58 +01:00
parent c0761eb619
commit 9f762aa88a
6 changed files with 9 additions and 9 deletions

View file

@ -287,7 +287,7 @@ void resetMotorConfig(motorConfig_t *motorConfig)
#endif
motorConfig->maxthrottle = 2000;
motorConfig->mincommand = 1000;
motorConfig->digitalIdleOffset = 40;
motorConfig->digitalIdleOffsetPercent = 3.0f;
int motorIndex = 0;
for (int i = 0; i < USABLE_TIMER_CHANNEL_COUNT && motorIndex < MAX_SUPPORTED_MOTORS; i++) {