A crank angle calculator that looks up the initial crank angle from an array.
More...
#include <crank_angle_calculator.h>
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
◆ lookup_initial_calculator_t() [1/2]
| decoders::shared::lookup_initial_calculator_t::lookup_initial_calculator_t |
( |
| ) |
|
|
protecteddefault |
◆ lookup_initial_calculator_t() [2/2]
| decoders::shared::lookup_initial_calculator_t::lookup_initial_calculator_t |
( |
uint16_t |
toothCurrentCount | ) |
|
|
explicitprotected |
◆ calculate()
| int16_t decoders::shared::lookup_initial_calculator_t::calculate |
( |
const int16_t |
toothAngles[] | ) |
const |
|
protected |
Calculate the crank angle.
- Parameters
-
| toothAngles | Array to lookup. Note that teeth numbers are 1-based, but arrays are 0-based |
◆ _toothCurrentCount
| uint16_t decoders::shared::lookup_initial_calculator_t::_toothCurrentCount = 0 |
The documentation for this struct was generated from the following files: