◆ initSpeedometer()
Definition at line 31 of file speedometer.cpp.
31 {
33
35 return;
36 }
37
39 "Speedometer",
42 NAN, 0.5f);
43
45}
SingleTimerExecutor scheduler
RegisteredOutputPin speedoOut
static EngineAccessor engine
static constexpr engine_configuration_s * engineConfiguration
bool isBrainPinValid(brain_pin_e brainPin)
void startSimplePwm(SimplePwm *state, const char *msg, Scheduler *executor, OutputPin *output, float frequency, float dutyCycle, pwm_gen_callback *callback)
static bool hasSpeedoInit
static SimplePwm speedoPwm("speedo")
output_pin_e speedometerOutputPin
Referenced by commonInitEngineController().
◆ speedoUpdate()
Definition at line 15 of file speedometer.cpp.
15 {
17 return;
18 }
19
21 float kps = kph * (1. / 3600);
23
24 if (freq < 1) {
25 freq = NAN;
26 }
27
29}
void setFrequency(float frequency)
static float getOrZero(SensorType type)
uint16_t speedometerPulsePerKm
Referenced by Engine::periodicFastCallback().
Go to the source code of this file.