mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 06:15:16 +03:00
Display ESC telemetry as real RPM in the OSD
The telemetry data provides eRPM/100. Added a `motor_poles` parameter (defaulting to 14) that is used to calculate the physical RPM. RPM = (telemetry_rpm * 100) / (motor_poles / 2) Most motors we commonly use are 14 poles, but the user can adjust if needed for their setup. Also calculate actual RPM for DEBUG_ESC_SENSOR_RPM, but to fit with in int16 the log value will be RPM/10.
This commit is contained in:
parent
49f2308fd6
commit
063f3829d4
5 changed files with 6 additions and 2 deletions
|
@ -110,6 +110,8 @@ void pgResetFn_motorConfig(motorConfig_t *motorConfig)
|
|||
motorIndex++;
|
||||
}
|
||||
}
|
||||
|
||||
motorConfig->motorPolesCount = 14; // Most brushes motors that we use are 14 poles
|
||||
}
|
||||
|
||||
PG_REGISTER_ARRAY(motorMixer_t, MAX_SUPPORTED_MOTORS, customMotorMixer, PG_MOTOR_MIXER, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue