10200mAh as a maximum for Consumption in Telemetry Bars

This commit is contained in:
bsongis
2014-05-05 10:53:59 +02:00
parent be3c674fe5
commit 2810323cc7
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -200,8 +200,8 @@ RawSourceRange RawSource::getRange(bool singleprec)
result.decimals = 1; result.decimals = 1;
break; break;
case TELEMETRY_SOURCE_CONSUMPTION: case TELEMETRY_SOURCE_CONSUMPTION:
result.step = singleprec ? 20 : 1; result.step = singleprec ? 40 : 1;
result.max = singleprec ? 5100 : 10000; result.max = singleprec ? 10200 : 10000;
break; break;
case TELEMETRY_SOURCE_POWER: case TELEMETRY_SOURCE_POWER:
case TELEMETRY_SOURCE_POWER_MAX: case TELEMETRY_SOURCE_POWER_MAX:
+1 -1
View File
@@ -2145,7 +2145,7 @@ getvalue_t convert8bitsTelemValue(uint8_t channel, ls_telemetry_value_t value)
result = value * 5; result = value * 5;
break; break;
case TELEM_CONSUMPTION: case TELEM_CONSUMPTION:
result = value * 20; result = value * 40;
break; break;
case TELEM_VSPEED: case TELEM_VSPEED:
result = ((getvalue_t)value - 125) * 10; result = ((getvalue_t)value - 125) * 10;