Add output channel for dwell

This commit is contained in:
Josh Stewart 2015-09-08 11:24:56 +10:00
parent b3fd8b1f56
commit cebf2d3683
2 changed files with 5 additions and 5 deletions

View File

@ -144,7 +144,7 @@ void sendValues(int length)
response[0] = currentStatus.secl; //secl is simply a counter that increments each second. Used to track unexpected resets (Which will reset this count to 0)
response[1] = currentStatus.squirt; //Squirt Bitfield
response[2] = currentStatus.engine; //Engine Status Bitfield
response[3] = 0x00; //baro
response[3] = (byte)(divu100(currentStatus.dwell)); //Dwell in ms * 10
response[4] = currentStatus.MAP; //map
response[5] = (byte)(currentStatus.IAT + CALIBRATION_TEMPERATURE_OFFSET); //mat
response[6] = (byte)(currentStatus.coolant + CALIBRATION_TEMPERATURE_OFFSET); //Coolant ADC

View File

@ -887,7 +887,7 @@ help = helpEnrichments, "Enrichments Help"
; ld = Label decimal places for display of Lo and Hi, above.
;Name Var Title Units Lo Hi LoD LoW HiW HiD vd ld
baroADCGauge = baroADC, "Barometer ADC", "", 0, 255, -1, -1, 256, 256, 0, 0
; baroADCGauge = baroADC, "Barometer ADC", "", 0, 255, -1, -1, 256, 256, 0, 0
mapADCGauge = mapADC, "MAP ADC", "", 0, 255, -1, -1, 256, 256, 0, 0
#matADCGauge = matADC, "MAT ADC", "", 0, 255, -1, -1, 256, 256, 0, 0
#cltADCGauge = cltADC, "CLT ADC", "", 0, 255, -1, -1, 256, 256, 0, 0
@ -1074,7 +1074,7 @@ help = helpEnrichments, "Enrichments Help"
tpsaccden = bits, U08, 2, [5:5]
mapaccaen = bits, U08, 2, [6:6]
mapaccden = bits, U08, 2, [7:7]
baroADC = scalar, U08, 3, "ADC", 1.000, 0.000
dwell = scalar, U08, 3, "ms", 0.100, 0.000
mapADC = scalar, U08, 4, "ADC", 1.000, 0.000
#if CELSIUS
iatRaw = scalar, U08, 5, "°C", 1.000, 0.000
@ -1119,10 +1119,10 @@ help = helpEnrichments, "Enrichments Help"
; #include "lambdaSensors.ini"
#if MPX4250
barometer = { table(baroADC, "kpafactor4250.inc") }
; barometer = { table(baroADC, "kpafactor4250.inc") }
map = { table(mapADC, "kpafactor4250.inc") } ; Manifold pressure in kPa.
#else
barometer = { table(baroADC, "kpafactor4115.inc") }
; barometer = { table(baroADC, "kpafactor4115.inc") }
map = { table(mapADC, "kpafactor4115.inc") }
#endif
; throttle = { table(tpsADC, "throttlefactor.inc") }