Add more types related to BME690
This commit is contained in:
1 parent
a5d1ed0560
commit
8ffb2384aa
2 files changed
+17
No files matched your search
@@ -168,6 +168,8 @@ export type GasSweepPoint = {
|
||||
resistance_norm: number | null; // baseline normalized
|
||||
adc_gas_res: number | null; // raw 10-bit gas ADC from BME690
|
||||
gas_range: number | null; // gas range 0-15 (affects resistance calc)
|
||||
res_heat: number | null; // heater resistance register (DAC target)
|
||||
idac: number | null; // initial heater DAC drive
|
||||
heater_stable: boolean;
|
||||
valid: boolean;
|
||||
};
|
||||
@@ -186,6 +188,11 @@ export type SweepBaseline = {
|
||||
humidity_ref: number;
|
||||
temp_ref: number;
|
||||
co2_ref: number | null;
|
||||
// Mean BME690 temp bias vs SCD43 across the baseline window. BME runs
|
||||
// hot from hotplate self-heating; this is a stable per-enclosure offset
|
||||
// recomputed every time the baseline is re-established. null when SCD43
|
||||
// was unavailable during baseline establishment.
|
||||
bme_temp_offset: number | null;
|
||||
};
|
||||
|
||||
export type SensorHealth = {
|
||||
@@ -218,6 +225,7 @@ export type EnvPayload = {
|
||||
sweep: GasSweepPoint[];
|
||||
zone_scores: ZoneScores;
|
||||
baseline: SweepBaseline;
|
||||
burn_in: boolean; // !baseline.established — skip fingerprinting
|
||||
health: SensorHealth;
|
||||
anomalies: EnvAnomaly[];
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user