![]() |
Speeduino
|
Macros | |
| #define | SECOND_DERIV_ENABLED 0 |
Typedefs | |
| typedef uint32_t | UQ24X8_t |
| typedef uint16_t | UQ1X15_t |
Functions | |
| void | setAngleConverterRevolutionTime (uint32_t revolutionTime) |
| Set the revolution time, from which some of the degree<-->angle conversions are derived. | |
| BEGIN_LTO_ALWAYS_INLINE (uint32_t) angleToTimeMicroSecPerDegree(uint16_t angle) | |
| BEGIN_LTO_ALWAYS_INLINE (uint16_t) timeToAngleDegPerMicroSec(uint32_t time) | |
Variables | |
| static constexpr uint8_t | UQ24X8_Shift = 8U |
| static UQ24X8_t | microsPerDegree |
| uS per degree at current RPM in UQ24.8 fixed point | |
| static constexpr uint8_t | microsPerDegree_Shift = UQ24X8_Shift |
| static constexpr uint8_t | UQ1X15_Shift = 15U |
| static UQ1X15_t | degreesPerMicro |
| Degrees per uS in UQ1.15 fixed point. | |
| static constexpr uint8_t | degreesPerMicro_Shift = UQ1X15_Shift |
| #define SECOND_DERIV_ENABLED 0 |
| BEGIN_LTO_ALWAYS_INLINE | ( | uint16_t | ) |

| BEGIN_LTO_ALWAYS_INLINE | ( | uint32_t | ) |

Set the revolution time, from which some of the degree<-->angle conversions are derived.
| revolutionTime | The crank revolution time. |


|
static |
Degrees per uS in UQ1.15 fixed point.
Ranges from 8 (0.000246) at MIN_RPM to 3542 (0.108) at MAX_RPM
|
staticconstexpr |
|
static |
uS per degree at current RPM in UQ24.8 fixed point
|
staticconstexpr |