|
@@ -301,7 +301,7 @@ void UpdateSerialOutput() {
|
|
|
|
|
|
//Calculate checksum.
|
|
|
uint16_t checksum = HeaterStatus + hardwareId + CJ125_Status + adcValue_UA + adcValue_UR + adcValue_UB;
|
|
|
-
|
|
|
+ const float AirFuelRatioOctane = 14.70;
|
|
|
//Assembled data.
|
|
|
String txString = (String)HeaterStatus;
|
|
|
txString += ",";
|
|
@@ -315,6 +315,8 @@ void UpdateSerialOutput() {
|
|
|
txString += ",";
|
|
|
txString += (String)((((float)adcValue_UB / 1023 * 5) / 10000) * 110000);
|
|
|
txString += ",";
|
|
|
+ txString += (String)(Lookup_Lambda(adcValue_UA) * AirFuelRatioOctane));
|
|
|
+ txString += ",";
|
|
|
txString += (String)checksum;
|
|
|
|
|
|
//Output values.
|