rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Functions
ignition_controller.cpp File Reference

Functions

bool isIgnVoltage ()
 

Function Documentation

◆ isIgnVoltage()

bool isIgnVoltage ( )

Definition at line 3 of file ignition_controller.cpp.

3 {
4#if EFI_PROD_CODE
5 // Digital pin has priority over analog inputs
8 }
9#endif
10
11 float ignVoltage = 0;
13 // If we have separate ignition sensing input
15 } else {
16 // No, we assume that ignition is ON while we are powered with resonable voltage
18 }
19
20 return (ignVoltage > 6.0f);
21}
virtual bool hasSensor() const
Definition sensor.h:141
static float getOrZero(SensorType type)
Definition sensor.h:83
static constexpr engine_configuration_s * engineConfiguration
bool efiReadPin(brain_pin_e pin)
Definition io_pins.cpp:89
bool isBrainPinValid(brain_pin_e brainPin)

Referenced by boardSdCardEnable(), StepperMotorBase::doIteration(), IgnVoltageGatekeeper::haveVoltage(), MainRelayController::onSlowCallback(), IgnitionController::onSlowCallback(), reset_and_jump(), slowStartStopButtonCallback(), THD_FUNCTION(), and useMsdMode().

Here is the call graph for this function:
Here is the caller graph for this function:

Go to the source code of this file.