![]() |
Speeduino
|
A crank angle calculator that looks up the initial crank angle from an array. More...
#include <crank_angle_calculator.h>
Public Attributes | |
| uint16_t | _toothCurrentCount = 0 |
| 1-based tooth number | |
Protected Member Functions | |
| lookup_initial_calculator_t ()=default | |
| lookup_initial_calculator_t (uint16_t toothCurrentCount) | |
| int16_t | calculate (const int16_t toothAngles[]) const |
| Calculate the crank angle. | |
A crank angle calculator that looks up the initial crank angle from an array.
Useful when the teeth are unevenly spaced or of varying widths
|
protecteddefault |
|
explicitprotected |
|
protected |
Calculate the crank angle.
| toothAngles | Array to lookup. Note that teeth numbers are 1-based, but arrays are 0-based |
| uint16_t lookup_initial_calculator_t::_toothCurrentCount = 0 |
1-based tooth number