Skip to content

Commit

Permalink
Update ground voltage/current division
Browse files Browse the repository at this point in the history
  • Loading branch information
steveatinfincia committed Dec 14, 2020
1 parent d693bc2 commit 58209fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions qml/ui/widgets/GroundPowerWidgetForm.ui.qml
Expand Up @@ -185,7 +185,7 @@ BaseWidget {
Text {
id: battery_amp_text
visible: settings.ground_battery_show_voltage_current
text: Number((OpenHD.ground_iout < 0 ? 0 : OpenHD.ground_iout) / 100.0).toLocaleString(
text: Number((OpenHD.ground_iout < 0 ? 0 : OpenHD.ground_iout) / 1000.0).toLocaleString(
Qt.locale(), 'f', 1) + "A"
color: settings.color_text
anchors.bottom: battery_percent.top
Expand All @@ -204,9 +204,9 @@ BaseWidget {
id: battery_volt_text
visible: settings.ground_battery_show_voltage_current
text: settings.ground_battery_show_single_cell ? Number(
((OpenHD.ground_vbat < 0 ? 0 : OpenHD.ground_vbat)) / settings.ground_battery_cells).toLocaleString(
((OpenHD.ground_vbat < 0 ? 0 : OpenHD.ground_vbat / 1000.0)) / settings.ground_battery_cells).toLocaleString(
Qt.locale(),
'f', 1) + "V" : Number((OpenHD.ground_vbat < 0 ? 0 : OpenHD.ground_vbat)).toLocaleString(
'f', 1) + "V" : Number((OpenHD.ground_vbat < 0 ? 0 : OpenHD.ground_vbat / 1000.0)).toLocaleString(
Qt.locale(),
'f', 1) + "V"
color: settings.color_text
Expand Down

0 comments on commit 58209fb

Please sign in to comment.