h-bridge wastegate not alive on bench #4965

more live data
This commit is contained in:
rusefillc 2023-01-16 21:12:24 -05:00
parent 114a50ab8a
commit 3738e8b3b9
2 changed files with 6 additions and 6 deletions

View File

@ -75,9 +75,9 @@ expected<percent_t> BoostController::getOpenLoop(float target) {
UNUSED(target);
float rpm = Sensor::getOrZero(SensorType::Rpm);
auto tps = Sensor::get(SensorType::DriverThrottleIntent);
auto driverIntent = Sensor::get(SensorType::DriverThrottleIntent);
isTpsInvalid = !tps.Valid;
isTpsInvalid = !driverIntent.Valid;
if (isTpsInvalid) {
return unexpected;
@ -85,7 +85,7 @@ expected<percent_t> BoostController::getOpenLoop(float target) {
efiAssert(OBD_PCM_Processor_Fault, m_openLoopMap != nullptr, "boost open loop", unexpected);
openLoopPart = luaOpenLoopAdd + m_openLoopMap->getValue(rpm, tps.Value);
openLoopPart = luaOpenLoopAdd + m_openLoopMap->getValue(rpm, driverIntent.Value);
return openLoopPart;
}

View File

@ -12,10 +12,10 @@ bit mapTooLow
int16_t autoscale luaTargetAdd;"Boost: Lua Target Add";"v", 0.5,0, -100,100, 1, @@GAUGE_CATEGORY_BOOST_CONTROL@@
int16_t autoscale boostOutput;"Boost: Output";"percent", 0.01,0, -100,100, 2, @@GAUGE_CATEGORY_BOOST_CONTROL@@
float luaTargetMult
float luaTargetMult;"Boost: Lua Target Mult";"v", 0.5,0, -100,100, 1, @@GAUGE_CATEGORY_BOOST_CONTROL@@
float openLoopPart;
float luaOpenLoopAdd
float openLoopPart;"Boost: Open Loop";"v", 0.5,0, -100,100, 1, @@GAUGE_CATEGORY_BOOST_CONTROL@@
float luaOpenLoopAdd;"Boost: Lua Open Loop Add";"v", 0.5,0, -100,100, 1, @@GAUGE_CATEGORY_BOOST_CONTROL@@
int8_t autoscale boostControllerClosedLoopPart;@@GAUGE_NAME_BOOST_CLOSED_LOOP@@;"%", 0.5,0, -50,50, 1, @@GAUGE_CATEGORY_BOOST_CONTROL@@
int16_t autoscale boostControlTarget;@@GAUGE_NAME_BOOST_TARGET@@;"kPa",{1/@@PACK_MULT_PRESSURE@@},0, 0, 300, 1, @@GAUGE_CATEGORY_BOOST_CONTROL@@