![]() |
Speeduino
|
A crank angle calculator that computes the initial crank angle from a tooth angle. More...
#include <crank_angle_calculator.h>
Public Attributes | |
| uint16_t | _toothCurrentCount = 0 |
| 1-based tooth number | |
| uint16_t | _toothAngle = 0 |
| Tooth angle (1-359°) | |
Protected Member Functions | |
| compute_initial_calculator_t ()=default | |
| compute_initial_calculator_t (uint16_t toothCurrentCount, uint16_t toothAngle) | |
| int16_t | calculate (void) const |
A crank angle calculator that computes the initial crank angle from a tooth angle.
Useful when the teeth are evenly spaced and the same width
|
protecteddefault |
|
explicitprotected |
|
protected |
| uint16_t compute_initial_calculator_t::_toothAngle = 0 |
Tooth angle (1-359°)
| uint16_t compute_initial_calculator_t::_toothCurrentCount = 0 |
1-based tooth number