Speeduino
Loading...
Searching...
No Matches
Classes | Functions
fuel_calcs.h File Reference

Pulse width calculations. More...

#include <stdint.h>
#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.

Classes

struct  pulseWidths
 Result of pulse width calculation. More...
 

Functions

pulseWidths computePulseWidths (const config2 &page2, const config6 &page6, const config10 &page10, const statuses &current)
 This function calculates the required pulsewidth time (in µS) given the current tune & system state.
 
void applyPwToInjectorChannels (const pulseWidths &pulse_widths, const config2 &page2, statuses &current)
 Apply the calculated pulse widths to the current system state.
 

Detailed Description

Pulse width calculations.

Function Documentation

◆ applyPwToInjectorChannels()

void applyPwToInjectorChannels ( const pulseWidths pulse_widths,
const config2 page2,
statuses current 
)

Apply the calculated pulse widths to the current system state.

Parameters
pulseWidthsResult of computePulseWidths()
page2Tune settings
currentCurrent system state
Here is the call graph for this function:
Here is the caller graph for this function:

◆ computePulseWidths()

pulseWidths computePulseWidths ( const config2 page2,
const config6 page6,
const config10 page10,
const statuses current 
)

This function calculates the required pulsewidth time (in µS) given the current tune & system state.

Parameters
page2Tune settings
page6Tune settings
page10Tune settings
currentCurrent system state
Returns
pulseWidths The primary and secondary injector pulse width in uS
Here is the call graph for this function:
Here is the caller graph for this function: