A crank angle calculator that computes a temporal adjustment based on the gap between the 2 most recent teeth rather than the last full revolution.
More...
#include <crank_angle_calculator.h>
A crank angle calculator that computes a temporal adjustment based on the gap between the 2 most recent teeth rather than the last full revolution.
◆ tooth_interval_calculator_t() [1/2]
| tooth_interval_calculator_t::tooth_interval_calculator_t |
( |
| ) |
|
|
protecteddefault |
◆ tooth_interval_calculator_t() [2/2]
| tooth_interval_calculator_t::tooth_interval_calculator_t |
( |
uint32_t |
toothLastToothTime, |
|
|
uint32_t |
toothLastMinusOneToothTime, |
|
|
uint16_t |
toothAngle, |
|
|
bool |
toothAngleCorrect |
|
) |
| |
|
explicitprotected |
◆ calculate()
| int16_t tooth_interval_calculator_t::calculate |
( |
uint32_t |
currMicros | ) |
const |
|
protected |
◆ _toothAngle
| uint16_t tooth_interval_calculator_t::_toothAngle = 0 |
◆ _toothAngleCorrect
| bool tooth_interval_calculator_t::_toothAngleCorrect |
◆ _toothLastMinusOneToothTime
| uint32_t tooth_interval_calculator_t::_toothLastMinusOneToothTime = 0 |
Time in µS that the tooth before the last tooth was detected.
◆ _toothLastToothTime
| uint32_t tooth_interval_calculator_t::_toothLastToothTime = 0 |
Time in µS that the current tooth was last detected.
The documentation for this struct was generated from the following files: