mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 01:05:10 +03:00
RPM blades
This commit is contained in:
parent
91f5205c4f
commit
d9cc451338
5 changed files with 47 additions and 24 deletions
|
@ -141,6 +141,9 @@ void TelemetryItem::setValue(const TelemetrySensor & sensor, int32_t newVal, uin
|
|||
datetime.timestate = 1;
|
||||
newVal = 0;
|
||||
}
|
||||
else if (unit == UNIT_RPMS) {
|
||||
newVal = newVal / sensor.custom.ratio;
|
||||
}
|
||||
else {
|
||||
newVal = sensor.getValue(newVal, unit, prec);
|
||||
if (sensor.autoOffset) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue