live data: main relay & launch

This commit is contained in:
Matthew Kennedy 2025-01-13 18:47:09 -05:00 committed by rusefillc
parent 4995904e0d
commit 3a133f1da7
4 changed files with 12 additions and 15 deletions

View File

@ -34,7 +34,6 @@ bit launchTriggered;Launch Control Triggered
bit isTps2Error;Error: TPS2 bit isTps2Error;Error: TPS2
bit injectorFault;Injector Fault bit injectorFault;Injector Fault
bit ignitionFault;Ignition Fault bit ignitionFault;Ignition Fault
bit isMainRelayOn;
bit isUsbConnected;isUsbConnected\nOriginal reason for this is to check if USB is connected from Lua bit isUsbConnected;isUsbConnected\nOriginal reason for this is to check if USB is connected from Lua
bit dfcoActive; bit dfcoActive;

View File

@ -592,7 +592,6 @@ static void updateIgnition(float rpm) {
} }
static void updateFlags() { static void updateFlags() {
engine->outputChannels.isMainRelayOn = enginePins.mainRelay.getLogicValue();
engine->outputChannels.isFanOn = enginePins.fanRelay.getLogicValue(); engine->outputChannels.isFanOn = enginePins.fanRelay.getLogicValue();
engine->outputChannels.isFan2On = enginePins.fanRelay2.getLogicValue(); engine->outputChannels.isFan2On = enginePins.fanRelay2.getLogicValue();
engine->outputChannels.isO2HeaterOn = enginePins.o2heater.getLogicValue(); engine->outputChannels.isO2HeaterOn = enginePins.o2heater.getLogicValue();

View File

@ -1,6 +1,6 @@
struct_no_prefix main_relay_s struct_no_prefix main_relay_s
bit isBenchTest bit isBenchTest;Main relay: Bench test
bit hasIgnitionVoltage bit hasIgnitionVoltage;Main relay: Has IGN voltage
bit mainRelayState bit mainRelayState;Main relay: On
bit delayedShutoffRequested bit delayedShutoffRequested;Main relay: Delayed shutoff
end_struct end_struct

View File

@ -1,19 +1,18 @@
struct_no_prefix launch_control_state_s struct_no_prefix launch_control_state_s
int retardThresholdRpm;Launch: Retard threshold RPM
int retardThresholdRpm
bit launchActivatePinState bit launchActivatePinState
bit isPreLaunchCondition bit isPreLaunchCondition
bit isLaunchCondition bit isLaunchCondition;Launch: isLaunchCondition
bit isSwitchActivated bit isSwitchActivated;Launch: isSwitchActivated
bit isClutchActivated bit isClutchActivated;Launch: isClutchActivated
bit isBrakePedalActivated bit isBrakePedalActivated
bit isValidInputPin bit isValidInputPin;Launch: isValidInputPin
bit activateSwitchCondition; bit activateSwitchCondition;Launch: activateSwitchCondition
bit rpmLaunchCondition; bit rpmLaunchCondition;
bit rpmPreLaunchCondition; bit rpmPreLaunchCondition;
bit speedCondition; bit speedCondition;Launch: speedCondition
bit tpsCondition; bit tpsCondition;Launch: tpsCondition
end_struct end_struct