![]() |
Speeduino
|
#include <crank_angle_calculator.h>
Public Member Functions | |
| compute_crank_angle_calculator_tooth_interval_t ()=default | |
| compute_crank_angle_calculator_tooth_interval_t (const std::tuple< uint32_t, uint32_t, bool, uint16_t, uint16_t, bool > &data) | |
| int16_t | calculateCrankAngle (uint32_t currMicros, const config4 &page4) const |
| Calculate the crank angle. | |
Additional Inherited Members | |
Public Attributes inherited from tooth_interval_calculator_t | |
| uint32_t | _toothLastToothTime = 0 |
| Time in µS that the current tooth was last detected. | |
| uint32_t | _toothLastMinusOneToothTime = 0 |
| Time in µS that the tooth before the last tooth was detected. | |
| uint16_t | _toothAngle = 0 |
| Tooth angle (1-359°) | |
| bool | _toothAngleCorrect |
| Is _toothAngle valid. | |
Public Attributes inherited from sequential_correction_calculator_t | |
| bool | _revZeroOrOne = false |
| When calculating over 720°, tells the calculator if we are in the 1st revolution (false) or the 2nd (true) | |
Public Attributes inherited from compute_initial_calculator_t | |
| uint16_t | _toothCurrentCount = 0 |
| 1-based tooth number | |
| uint16_t | _toothAngle = 0 |
| Tooth angle (1-359°) | |
Protected Member Functions inherited from tooth_interval_calculator_t | |
| tooth_interval_calculator_t ()=default | |
| tooth_interval_calculator_t (uint32_t toothLastToothTime, uint32_t toothLastMinusOneToothTime, uint16_t toothAngle, bool toothAngleCorrect) | |
| int16_t | calculate (uint32_t currMicros) const |
Protected Member Functions inherited from sequential_correction_calculator_t | |
| sequential_correction_calculator_t ()=default | |
| sequential_correction_calculator_t (bool revZeroOrOne) | |
| int16_t | calculate (const config4 &page4) const |
Protected Member Functions inherited from compute_initial_calculator_t | |
| compute_initial_calculator_t ()=default | |
| compute_initial_calculator_t (uint16_t toothCurrentCount, uint16_t toothAngle) | |
| int16_t | calculate (void) const |
|
default |
|
explicit |
| int16_t compute_crank_angle_calculator_tooth_interval_t::calculateCrankAngle | ( | uint32_t | currMicros, |
| const config4 & | page4 | ||
| ) | const |
Calculate the crank angle.
| currMicros | Current time in µS. Usually the result of a call to micros() |
| page4 | The tune |