28#define APPS_RATIO 53 / 34
constexpr uint16_t APPS_3V3_MIN
constexpr TablePoint< uint16_t, int16_t > CURVE_TABLE[5]
Throttle mapping table.
constexpr LinearInterp< uint16_t, uint16_t, uint32_t, 2 > APPS_5V_TABLE_INVERTED_MAP
LinearInterp for APPS_5V_TABLE_INVERTED, used to get APPS reading from a desired percentage.
constexpr uint16_t brake_min
constexpr TablePoint< uint16_t, int16_t > THROTTLE_TABLE[5]
Throttle mapping table (calculated), maps APPS_5V readings to torque values.
constexpr TablePoint< uint16_t, int16_t > BRAKE_TABLE[5]
Brake mapping table, negative values for regen.
constexpr TablePoint< uint16_t, uint16_t > APPS_5V_PERCENT_TABLE[2]
APPS_5V to percent mapping table, maps 5V readings to percent throttle (0-60000)
constexpr uint16_t APPS_3V3_MAX
constexpr uint16_t brake_max
constexpr uint16_t APPS_5V_MIN
constexpr TablePoint< uint16_t, uint16_t > APPS_5V_TABLE_INVERTED[2]
APPS percent mapping table, maps APPS percentage to 5V readings.
constexpr TablePoint< uint16_t, uint16_t > APPS_3V3_SCALE_TABLE[3]
APPS_3V3 mapping table, maps 3V3 readings to 5V readings.
constexpr uint16_t APPS_5V_MAX
Declaration and definition of the LinearInterp class template for linear interpolation.
Class template for performing linear interpolation using a lookup table.
Structure representing a point in the interpolation table.