custom-board-bundle-sample-.../firmware/controllers/sensors/converters/vehicle_speed_converter.h

11 lines
260 B
C++

#include "pch.h"
#include "sensor_converter_func.h"
class VehicleSpeedConverter : public SensorConverter {
public:
SensorResult convert(float frequency) const override {
auto speed = frequency * engineConfiguration->vehicleSpeedCoef;
return speed;
}
};