◆ initSpeedometer()
Definition at line 25 of file speedometer.cpp.
25 {
27
29 return;
30 }
31
33 "Speedometer",
36 NAN, 0.5f);
37
39}
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 9 of file speedometer.cpp.
9 {
11 return;
12 }
13
15 float kps = kph * (1. / 3600);
17
18 if (freq < 1) {
19 freq = NAN;
20 }
21
23}
void setFrequency(float frequency)
static float getOrZero(SensorType type)
uint16_t speedometerPulsePerKm
Referenced by Engine::periodicFastCallback().
Go to the source code of this file.