G1000 MFD EIS: real two-bus volts, alternator/battery amps, engine hours
- electrical readout now shows M (main) and E (essential) bus volts from bus_volts[0]/[1], M (alternator generator_amps) and S (battery_amps) separately, and ENG hours from flight time — replacing the hardcoded duplicate volts / +0.0 amps / 0.0 HRS placeholders (manual S.54 C172 layout) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -291,7 +291,7 @@ function startDemo() {
|
||||
...(process.env.DEMO_RANGE ? { uiMapRange: Number(process.env.DEMO_RANGE) } : {}),
|
||||
// engine strip (arrays, like the sim)
|
||||
engRpm: [2410], fuelFlow: [0.0072], oilTemp: [88], oilPress: [52], egt: [720],
|
||||
fuelQty: [60, 58], volts: [process.env.DEMO_ALERT ? 23.4 : 28.0], amps: [12],
|
||||
fuelQty: [60, 58], volts: [process.env.DEMO_ALERT ? 23.4 : 28.0, 27.8], amps: [-1.5], genAmps: [20.5], engHrs: 5040,
|
||||
});
|
||||
// a sample plan so the map/FMS show something in demo mode
|
||||
fp.setPlan({ name: 'DEMO', waypoints: [
|
||||
|
||||
+4
-2
@@ -96,8 +96,10 @@ export const DATAREFS = {
|
||||
oilPress: 'sim/cockpit2/engine/indicators/oil_pressure_psi',
|
||||
egt: 'sim/cockpit2/engine/indicators/EGT_deg_C',
|
||||
fuelQty: 'sim/cockpit2/fuel/fuel_quantity',
|
||||
volts: 'sim/cockpit2/electrical/bus_volts',
|
||||
amps: 'sim/cockpit2/electrical/battery_amps',
|
||||
volts: 'sim/cockpit2/electrical/bus_volts', // array: [0]=main bus, [1]=essential
|
||||
amps: 'sim/cockpit2/electrical/battery_amps', // battery (S) amps
|
||||
genAmps: 'sim/cockpit2/electrical/generator_amps', // alternator (M) amps
|
||||
engHrs: 'sim/time/total_flight_time_sec', // proxy for engine/tach hours
|
||||
|
||||
// --- autopilot readouts (live values, so the panel reflects reality) ---
|
||||
apState: 'sim/cockpit2/autopilot/autopilot_state', // bitfield of active modes
|
||||
|
||||
Reference in New Issue
Block a user