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 injectorFault;Injector Fault
bit ignitionFault;Ignition Fault
bit isMainRelayOn;
bit isUsbConnected;isUsbConnected\nOriginal reason for this is to check if USB is connected from Lua
bit dfcoActive;

View File

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

View File

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

View File

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