mirror of https://github.com/rusefi/rusefi-1.git
safe boost duty (#2764)
This commit is contained in:
parent
6d19adb24f
commit
58b274c80c
|
@ -128,8 +128,7 @@ expected<percent_t> BoostController::getClosedLoop(float target, float manifoldP
|
||||||
}
|
}
|
||||||
|
|
||||||
void BoostController::setOutput(expected<float> output) {
|
void BoostController::setOutput(expected<float> output) {
|
||||||
// TODO: hook up safe duty cycle
|
percent_t percent = output.value_or(CONFIG(boostControlSafeDutyCycle));
|
||||||
percent_t percent = output.value_or(/*CONFIG(boostControlSafeDutyCycle)*/ 0);
|
|
||||||
float duty = PERCENT_TO_DUTY(percent);
|
float duty = PERCENT_TO_DUTY(percent);
|
||||||
|
|
||||||
if (m_pwm) {
|
if (m_pwm) {
|
||||||
|
|
|
@ -690,7 +690,7 @@ trigger_config_s trigger;
|
||||||
custom spi_device_e 1 bits, U08, @OFFSET@, [0:2], "Off", "SPI1", "SPI2", "SPI3", "SPI4", "INVALID", "INVALID", "INVALID"
|
custom spi_device_e 1 bits, U08, @OFFSET@, [0:2], "Off", "SPI1", "SPI2", "SPI3", "SPI4", "INVALID", "INVALID", "INVALID"
|
||||||
spi_device_e hip9011SpiDevice;
|
spi_device_e hip9011SpiDevice;
|
||||||
uint8_t failedMapFallback;+This value is only used for speed density fueling calculations.;"kPa", 1, 0, 0, 100, 0
|
uint8_t failedMapFallback;+This value is only used for speed density fueling calculations.;"kPa", 1, 0, 0, 100, 0
|
||||||
uint8_t unused542;;"unit", 1, 0, 0, 100, 0
|
uint8_t boostControlSafeDutyCycle;+Duty cycle to use in case of a sensor failure. This duty cycle should produce the minimum possible amount of boost.;"%",1,0,0,100,0
|
||||||
adc_channel_e mafAdcChannel
|
adc_channel_e mafAdcChannel
|
||||||
|
|
||||||
float globalFuelCorrection;set global_fuel_correction X;"coef", 1, 0.0, 0, 1000.0, 2
|
float globalFuelCorrection;set global_fuel_correction X;"coef", 1, 0.0, 0, 1000.0, 2
|
||||||
|
|
|
@ -3265,6 +3265,7 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@\x00\x31\x00\x00"
|
||||||
field = "Output Mode", boostControlPinMode, { isBoostControlEnabled }
|
field = "Output Mode", boostControlPinMode, { isBoostControlEnabled }
|
||||||
field = "Frequency", boostPwmFrequency, { isBoostControlEnabled }
|
field = "Frequency", boostPwmFrequency, { isBoostControlEnabled }
|
||||||
|
|
||||||
|
field = "Safe duty cycle", boostControlSafeDutyCycle, { isBoostControlEnabled }
|
||||||
dialog = boostDialog, "", border
|
dialog = boostDialog, "", border
|
||||||
panel = boost_left, West
|
panel = boost_left, West
|
||||||
panel = boostTableTbl, Center
|
panel = boostTableTbl, Center
|
||||||
|
|
Loading…
Reference in New Issue