Skip to content

Commit a048732

Browse files
feat: corrections
1 parent 5439700 commit a048732

2 files changed

Lines changed: 8 additions & 45 deletions

File tree

backend/cmd/hypervisor-monitoring.json

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
22
"4": {
3-
"320": [
4-
"lcu_coil_current_1"
5-
],
6-
"318": [
7-
"lcu_airgap_1"
3+
"101": [
4+
"lcu_coil_current_1",
5+
"lcu_airgap_std",
6+
"lcu_power"
87
]
98
},
109
"1": {
@@ -152,24 +151,6 @@
152151
"battery16_cell6",
153152
"battery16_total_voltage"
154153
],
155-
"926": [
156-
"battery17_cell1",
157-
"battery17_cell2",
158-
"battery17_cell3",
159-
"battery17_cell4",
160-
"battery17_cell5",
161-
"battery17_cell6",
162-
"battery17_total_voltage"
163-
],
164-
"927": [
165-
"battery18_cell1",
166-
"battery18_cell2",
167-
"battery18_cell3",
168-
"battery18_cell4",
169-
"battery18_cell5",
170-
"battery18_cell6",
171-
"battery18_total_voltage"
172-
],
173154
"928": [
174155
"batteries_voltage_reading"
175156
],

frontend/src/lib/telemetryBuilders.ts

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,11 @@
11
import type { TelemetryData } from "@/types/telemetry"
22

33
const lcuAirgapKeys = [
4-
"lcu_airgap_1",
5-
"lcu_airgap_2",
6-
"lcu_airgap_3",
7-
"lcu_airgap_4",
8-
"lcu_airgap_5",
9-
"lcu_airgap_6",
10-
"lcu_airgap_7",
11-
"lcu_airgap_8",
4+
"lcu_airgap_std"
125
]
136

147
const lcuCoilCurrentKeys = [
158
"lcu_coil_current_1",
16-
"lcu_coil_current_2",
17-
"lcu_coil_current_3",
18-
"lcu_coil_current_4",
19-
"lcu_coil_current_5",
20-
"lcu_coil_current_6",
21-
"lcu_coil_current_7",
22-
"lcu_coil_current_8",
23-
"lcu_coil_current_9",
24-
"lcu_coil_current_10",
259
]
2610

2711
const PACK_COUNT = 18
@@ -40,11 +24,9 @@ export const buildLevitation = (getValue: (measurementId: string, boardId: numbe
4024
const levitationCurrent = mean(lcuCoilCurrentKeys.map((key) => getValue(key, BOARD_LCU)))
4125

4226
const voltageReading = getValue("voltage_reading", BOARD_HVSCU)
43-
const currentReading = getValue("current_reading", BOARD_HVSCU)
44-
const levitationPower =
45-
typeof voltageReading === "number" && typeof currentReading === "number"
46-
? voltageReading * currentReading
47-
: null
27+
//const currentReading = getValue("current_reading", BOARD_HVSCU)
28+
const levitationPower = getValue("lcu_power", BOARD_LCU);
29+
4830

4931
return {
5032
levitation: {

0 commit comments

Comments
 (0)