safe boost duty (#2764)

This commit is contained in:
Matthew Kennedy 2021-05-30 05:04:04 -06:00 committed by GitHub
parent 6d19adb24f
commit 58b274c80c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -128,8 +128,7 @@ expected<percent_t> BoostController::getClosedLoop(float target, float manifoldP
}
void BoostController::setOutput(expected<float> output) {
// TODO: hook up safe duty cycle
percent_t percent = output.value_or(/*CONFIG(boostControlSafeDutyCycle)*/ 0);
percent_t percent = output.value_or(CONFIG(boostControlSafeDutyCycle));
float duty = PERCENT_TO_DUTY(percent);
if (m_pwm) {

View File

@ -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"
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 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
float globalFuelCorrection;set global_fuel_correction X;"coef", 1, 0.0, 0, 1000.0, 2

View File

@ -3265,6 +3265,7 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@\x00\x31\x00\x00"
field = "Output Mode", boostControlPinMode, { isBoostControlEnabled }
field = "Frequency", boostPwmFrequency, { isBoostControlEnabled }
field = "Safe duty cycle", boostControlSafeDutyCycle, { isBoostControlEnabled }
dialog = boostDialog, "", border
panel = boost_left, West
panel = boostTableTbl, Center