mirror of
https://github.com/mck1117/wideband.git
synced 2026-09-30 09:57:06 -04:00
Multichannel (#134)
* Multichannel AFR * heater: fixes for multi channel mode * f1_dual: fix configuration names * pump_dac: fixes for multi-channel mode * pwm: fixes for multichannel mode * pump_control: reference instead of pointer * sampling: reference instead of pointer * heater_control: reference instead of pointer * sampling: comment about heater/battery voltage * f0_module: fixes for multi-channel update * f1_rev2: fix for multichannel AFR * hello rev 3 Co-authored-by: rusefillc <sdfsdfqsf2334234234>
This commit is contained in:
@@ -22,9 +22,9 @@ static float GetPhi(float pumpCurrent)
|
||||
return gain * pumpCurrent + 0.99559f;
|
||||
}
|
||||
|
||||
float GetLambda()
|
||||
float GetLambda(int ch)
|
||||
{
|
||||
float pumpCurrent = GetPumpNominalCurrent();
|
||||
float pumpCurrent = GetPumpNominalCurrent(ch);
|
||||
|
||||
// Lambda is reciprocal of phi
|
||||
return 1 / GetPhi(pumpCurrent);
|
||||
|
||||
Reference in New Issue
Block a user