◆ initVrThresholdPwm()
void initVrThresholdPwm |
( |
| ) |
|
Definition at line 39 of file vr_pwm.cpp.
39 {
42
44 continue;
45 }
46
49 cfg.pin,
51 10000,
52 0
53 );
54 }
55}
SingleTimerExecutor scheduler
static EngineAccessor engine
static constexpr engine_configuration_s * engineConfiguration
bool isBrainPinValid(brain_pin_e brainPin)
void startSimplePwmHard(SimplePwm *state, const char *msg, Scheduler *executor, brain_pin_e brainPin, OutputPin *output, float frequency, float dutyCycle)
vr_threshold_s vrThreshold[VR_THRESHOLD_COUNT]
static OutputPin pins[VR_THRESHOLD_COUNT]
static SimplePwm pwms[VR_THRESHOLD_COUNT]
Referenced by initRealHardwareEngineController().
◆ setDefaultVrThresholds()
void setDefaultVrThresholds |
( |
| ) |
|
Definition at line 57 of file vr_pwm.cpp.
57 {
58 for (int i = 0;i<VR_THRESHOLD_COUNT;i++) {
61 }
62}
scaled_channel< uint8_t, 1, 50 > rpmBins[6]
scaled_channel< uint8_t, 100, 1 > values[6]
void setRpmTableBin(TValue(&array)[TSize])
void setLinearCurve(TValue(&array)[TSize], float from, float to, float precision=0.01f)
Referenced by setDefaultBaseEngine().
◆ updateVrThresholdPwm()
void updateVrThresholdPwm |
( |
| ) |
|
Go to the source code of this file.