1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-25 01:05:10 +03:00

RPM blades

This commit is contained in:
Andre Bernet 2015-03-22 20:56:03 +04:00
parent 91f5205c4f
commit d9cc451338
5 changed files with 47 additions and 24 deletions

View file

@ -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) {