CAM sensor simulator #5640
This commit is contained in:
parent
551d9ca11f
commit
9fa20ad0a8
|
@ -604,6 +604,7 @@ static void setDefaultEngineConfiguration() {
|
||||||
engineConfiguration->knockDetectionWindowEnd = 15.0 + 45.0;
|
engineConfiguration->knockDetectionWindowEnd = 15.0 + 45.0;
|
||||||
|
|
||||||
engineConfiguration->triggerSimulatorRpm = 1200;
|
engineConfiguration->triggerSimulatorRpm = 1200;
|
||||||
|
engineConfiguration->simulatorCamPosition[0] = 23;
|
||||||
|
|
||||||
engineConfiguration->alternatorPwmFrequency = 300;
|
engineConfiguration->alternatorPwmFrequency = 300;
|
||||||
|
|
||||||
|
|
|
@ -171,7 +171,7 @@ static void startSimulatedTriggerSignal() {
|
||||||
&engine->executor,
|
&engine->executor,
|
||||||
&s->wave,
|
&s->wave,
|
||||||
updateTriggerWaveformIfNeeded, emulatorApplyPinState);
|
updateTriggerWaveformIfNeeded, emulatorApplyPinState);
|
||||||
|
// todo: simulate at least one cam sensor as well
|
||||||
hasInitTriggerEmulator = true;
|
hasInitTriggerEmulator = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1577,7 +1577,9 @@ pin_input_mode_e[LUA_DIGITAL_INPUT_COUNT iterate] luaDigitalInputPinModes;
|
||||||
output_pin_e speedometerOutputPin
|
output_pin_e speedometerOutputPin
|
||||||
uint16_t speedometerPulsePerKm;Number of speedometer pulses per kilometer travelled.;"", 1, 0, 0, 65000, 0
|
uint16_t speedometerPulsePerKm;Number of speedometer pulses per kilometer travelled.;"", 1, 0, 0, 65000, 0
|
||||||
|
|
||||||
uint8_t[246] mainUnusedEnd;;"units", 1, 0, 0, 1, 0
|
uint8_t[CAM_INPUTS_COUNT iterate] simulatorCamPosition;
|
||||||
|
|
||||||
|
uint8_t[242] mainUnusedEnd;;"units", 1, 0, 0, 1, 0
|
||||||
|
|
||||||
! end of engine_configuration_s
|
! end of engine_configuration_s
|
||||||
end_struct
|
end_struct
|
||||||
|
|
Loading…
Reference in New Issue