20 void showInfo(
const char* sensorName)
const override;
SensorResult get() const override
void onConfigurationChange(engine_configuration_s const *) override
float computeGearboxRatio() const
size_t determineGearFromRatio(float ratio) const
void onSlowCallback() override
float getRpmInGear(size_t gear) const
void showInfo(const char *sensorName) const override
float getDriveshaftRpm() const
float getGearboxRatio() const
float m_gearThresholds[TCU_GEAR_COUNT - 1]
Base class for sensors. Inherit this class to implement a new type of sensor.
expected< float > SensorResult