2022-04-21 06:07:52 -07:00
|
|
|
#include "pch.h"
|
|
|
|
#include "sensor_converter_func.h"
|
|
|
|
|
|
|
|
class InputShaftSpeedConverter : public SensorConverter {
|
|
|
|
public:
|
|
|
|
SensorResult convert(float frequency) const override {
|
2022-04-25 14:42:19 -07:00
|
|
|
return frequency * 60 / engineConfiguration->tcuInputSpeedSensorTeeth;
|
2022-04-21 06:07:52 -07:00
|
|
|
}
|
|
|
|
};
|