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:
Andrey G
2022-08-30 03:19:30 +03:00
committed by GitHub
parent 2cc460adba
commit cddcd0d88c
23 changed files with 371 additions and 249 deletions

View File

@@ -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);