FE cutoff vizsualize
This commit is contained in:
@@ -433,6 +433,9 @@ export type DeyeRegistersLive = {
|
||||
reg142_limit_control: number
|
||||
reg143_export_limit_w: number
|
||||
reg178_peak_shaving_switch: number
|
||||
reg178_control_board_special_1: number
|
||||
reg178_mi_export_cutoff_bits: number
|
||||
reg178_mi_export_cutoff_is_on: boolean
|
||||
reg191_peak_shaving_w: number
|
||||
read_at: string
|
||||
}
|
||||
|
||||
@@ -90,6 +90,16 @@ const LiveRegistersSection = memo(
|
||||
sub="Bit4–5: 10 = disable při exportu, 11 = enable při IDLE/CHARGE"
|
||||
valueText={live?.reg178_peak_shaving_switch != null ? String(live.reg178_peak_shaving_switch) : undefined}
|
||||
/>
|
||||
<Metric
|
||||
label="MI export cutoff (GEN)"
|
||||
reg={178}
|
||||
sub="Bits0–1: 2 = disable (cutoff OFF), 3 = enable (cutoff ON)"
|
||||
valueText={
|
||||
live
|
||||
? `${live.reg178_mi_export_cutoff_is_on ? 'ON (enable=3)' : 'OFF (disable=2)'} · bits0–1=${live.reg178_mi_export_cutoff_bits} · reg178=${live.reg178_control_board_special_1}`
|
||||
: undefined
|
||||
}
|
||||
/>
|
||||
<Metric
|
||||
label="Grid peak shaving W"
|
||||
reg={191}
|
||||
@@ -112,6 +122,9 @@ const LiveRegistersSection = memo(
|
||||
a.live?.reg142_limit_control === b.live?.reg142_limit_control &&
|
||||
a.live?.reg143_export_limit_w === b.live?.reg143_export_limit_w &&
|
||||
a.live?.reg178_peak_shaving_switch === b.live?.reg178_peak_shaving_switch &&
|
||||
a.live?.reg178_control_board_special_1 === b.live?.reg178_control_board_special_1 &&
|
||||
a.live?.reg178_mi_export_cutoff_bits === b.live?.reg178_mi_export_cutoff_bits &&
|
||||
a.live?.reg178_mi_export_cutoff_is_on === b.live?.reg178_mi_export_cutoff_is_on &&
|
||||
a.live?.reg191_peak_shaving_w === b.live?.reg191_peak_shaving_w,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user