Adjust pulse width comms accuracy

This commit is contained in:
Josh Stewart 2015-02-25 13:11:44 +11:00
parent 6a938da6df
commit 31b5ff5e37
2 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ void sendValues(int length)
response[17] = currentStatus.corrections; //Total GammaE (%)
response[18] = currentStatus.VE; //Current VE 1 (%)
response[19] = currentStatus.afrTarget;
response[20] = (byte)(currentStatus.PW / 200); //Pulsewidth 1 multiplied by 10 in ms. Have to convert from uS to mS.
response[20] = (byte)(currentStatus.PW / 100); //Pulsewidth 1 multiplied by 10 in ms. Have to convert from uS to mS.
response[21] = currentStatus.tpsDOT; //TPS DOT
response[22] = currentStatus.advance;
response[23] = currentStatus.TPS; // TPS (0% to 100%)

View File

@ -901,7 +901,7 @@ help = helpEnrichments, "Enrichments Help"
veCurr = scalar, U08, 18, "%", 1.000, 0.000
afrTarget = scalar, U08, 19 "O2", 0.100, 0.000
#blank2 = scalar, U08, 20
pulseWidth = scalar, U08, 20, "ms", 0.2, 0.000
pulseWidth = scalar, U08, 20, "ms", 0.1, 0.000
TPSdot = scalar, U08, 21, "%/s", 10.00, 0.000
advance = scalar, U08, 22, "deg", 1.000, 0.000
tps = scalar, U08, 23, "%", 1.000, 0.000