Speeduino
Loading...
Searching...
No Matches
Functions
engineProtection.h File Reference

Engine "protection" via RPM limits. More...

#include "statuses.h"
#include "config_pages.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

statuses::engine_protect_flags_t checkEngineProtection (const statuses &current, const config4 &page4, const config6 &page6, const config9 &page9, const config10 &page10)
 Determine what the engine protection state is.
 
statuses::scheduler_cut_t calculateFuelIgnitionChannelCut (const statuses &current, const config2 &page2, const config4 &page4, const config6 &page6, const config9 &page9)
 Determine which fuel and ignition channels to cut in order to limit RPM.
 

Detailed Description

Engine "protection" via RPM limits.

Function Documentation

◆ calculateFuelIgnitionChannelCut()

statuses::scheduler_cut_t calculateFuelIgnitionChannelCut ( const statuses current,
const config2 page2,
const config4 page4,
const config6 page6,
const config9 page9 
)

Determine which fuel and ignition channels to cut in order to limit RPM.

Note
This can only enforce RPM based limits; limits based on other factors (E.g. advance) are dealt with elsewhere.
Parameters
currentCurrent system state
page2Tune
page4Tune
page6Tune
page9Tune
Returns
statuses::scheduler_cut_t Cut status & fuel/ignition channels that should be cut.
Here is the caller graph for this function:

◆ checkEngineProtection()

statuses::engine_protect_flags_t checkEngineProtection ( const statuses current,
const config4 page4,
const config6 page6,
const config9 page9,
const config10 page10 
)

Determine what the engine protection state is.

Parameters
currentCurrent system state
page4Tune
page6Tune
page9Tune
page10Tune
Returns
statuses::engine_protect_flags_t Which engine protections should be applied
Here is the caller graph for this function: