![]() |
Speeduino
|
Unit conversion functions and constants. More...
Go to the source code of this file.
Functions | |
static constexpr uint8_t | temperatureAddOffset (int16_t temperature) |
Convert an internal temperature value (-40 to 215°C) to a storage value (0-255). | |
static constexpr int16_t | temperatureRemoveOffset (uint8_t temperature) |
Convert a storage value (0-255) to an internal temperature value (-40 to 215°C). | |
Variables | |
constexpr int16_t | CALIBRATION_TEMPERATURE_OFFSET = 40 |
Unit conversion functions and constants.
Convert an internal temperature value (-40 to 215°C) to a storage value (0-255).
temperature | in °C, from -40 to 215. |
Convert a storage value (0-255) to an internal temperature value (-40 to 215°C).
Reverse operation of temperatureAddOffset.
temperature |