Speeduino
Loading...
Searching...
No Matches
Public Attributes | Protected Member Functions | List of all members
last_tooth_rev_calculator_t Struct Reference

A crank angle calculator that computes a temporal adjustment based on when the tooth was last detected. More...

#include <crank_angle_calculator.h>

Inheritance diagram for last_tooth_rev_calculator_t:
lookup_crank_angle_calculator_t simple_crank_angle_calculator_t trigger_angle_crank_angle_calculator_t

Public Attributes

uint32_t _toothLastToothTime = 0
 Time in µS that the current tooth was last detected.
 

Protected Member Functions

 last_tooth_rev_calculator_t ()=default
 
 last_tooth_rev_calculator_t (uint32_t toothLastToothTime)
 
int16_t calculate (uint32_t currMicros) const
 

Detailed Description

A crank angle calculator that computes a temporal adjustment based on when the tooth was last detected.

Constructor & Destructor Documentation

◆ last_tooth_rev_calculator_t() [1/2]

last_tooth_rev_calculator_t::last_tooth_rev_calculator_t ( )
protecteddefault

◆ last_tooth_rev_calculator_t() [2/2]

last_tooth_rev_calculator_t::last_tooth_rev_calculator_t ( uint32_t  toothLastToothTime)
explicitprotected

Member Function Documentation

◆ calculate()

int16_t last_tooth_rev_calculator_t::calculate ( uint32_t  currMicros) const
protected

Member Data Documentation

◆ _toothLastToothTime

uint32_t last_tooth_rev_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: