Speeduino
Loading...
Searching...
No Matches
fuel_calcs.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdint.h>
4#include "statuses.h"
5#include "config_pages.h"
6
25
36
The tune page structs and related defines.
void applyPwToInjectorChannels(const pulseWidths &pulse_widths, const config2 &page2, statuses &current)
Apply the calculated pulse widths to the current system state.
Definition fuel_calcs.cpp:240
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.
Definition fuel_calcs.cpp:484
static TIntegral readSerialIntegralTimeout(void)
Reads an integral type, timing out if necessary.
Definition comms.cpp:173
The statuses struct and related defines.
Definition config_pages.h:650
Definition config_pages.h:171
Definition config_pages.h:459
Result of pulse width calculation.
Definition fuel_calcs.h:13
uint16_t secondary
Secondary pulse width in µS.
Definition fuel_calcs.h:23
uint16_t primary
Primary pulse width in µS.
Definition fuel_calcs.h:15
The status struct with current values for all 'live' variables.
Definition statuses.h:23