Skip to content

Commit 58209fb

Browse files
Update ground voltage/current division
1 parent d693bc2 commit 58209fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

qml/ui/widgets/GroundPowerWidgetForm.ui.qml

+3-3
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ BaseWidget {
185185
Text {
186186
id: battery_amp_text
187187
visible: settings.ground_battery_show_voltage_current
188-
text: Number((OpenHD.ground_iout < 0 ? 0 : OpenHD.ground_iout) / 100.0).toLocaleString(
188+
text: Number((OpenHD.ground_iout < 0 ? 0 : OpenHD.ground_iout) / 1000.0).toLocaleString(
189189
Qt.locale(), 'f', 1) + "A"
190190
color: settings.color_text
191191
anchors.bottom: battery_percent.top
@@ -204,9 +204,9 @@ BaseWidget {
204204
id: battery_volt_text
205205
visible: settings.ground_battery_show_voltage_current
206206
text: settings.ground_battery_show_single_cell ? Number(
207-
((OpenHD.ground_vbat < 0 ? 0 : OpenHD.ground_vbat)) / settings.ground_battery_cells).toLocaleString(
207+
((OpenHD.ground_vbat < 0 ? 0 : OpenHD.ground_vbat / 1000.0)) / settings.ground_battery_cells).toLocaleString(
208208
Qt.locale(),
209-
'f', 1) + "V" : Number((OpenHD.ground_vbat < 0 ? 0 : OpenHD.ground_vbat)).toLocaleString(
209+
'f', 1) + "V" : Number((OpenHD.ground_vbat < 0 ? 0 : OpenHD.ground_vbat / 1000.0)).toLocaleString(
210210
Qt.locale(),
211211
'f', 1) + "V"
212212
color: settings.color_text

0 commit comments

Comments
 (0)