rusEFI
The most advanced open source ECU
Public Member Functions | Private Attributes
ShutdownController Class Reference

#include <shutdown_controller.h>

Collaboration diagram for ShutdownController:
Collaboration graph
[legend]

Public Member Functions

void stopEngine ()
 
bool isEngineStop (efitick_t nowNt) const
 

Private Attributes

Timer m_engineStopTimer
 

Detailed Description

Definition at line 12 of file shutdown_controller.h.

Member Function Documentation

◆ isEngineStop()

bool ShutdownController::isEngineStop ( efitick_t  nowNt) const
inline

Definition at line 23 of file shutdown_controller.h.

23  {
24  float timeSinceStopRequested = m_engineStopTimer.getElapsedSeconds(nowNt);
25 
26  // If there was stop requested in the past 5 seconds, we're in stop mode
27  return timeSinceStopRequested < 5;
28  }

Referenced by configureRusefiLuaHooks(), and LimpManager::updateState().

Here is the caller graph for this function:

◆ stopEngine()

void ShutdownController::stopEngine ( )
inline

Definition at line 14 of file shutdown_controller.h.

14  {
15  m_engineStopTimer.reset();
16 // ignitionOnTimeNt = 0;
17  }

Referenced by doScheduleStopEngine().

Here is the caller graph for this function:

Field Documentation

◆ m_engineStopTimer

Timer ShutdownController::m_engineStopTimer
private

Definition at line 31 of file shutdown_controller.h.

Referenced by isEngineStop(), and stopEngine().


The documentation for this class was generated from the following file: