From 31b5ff5e37c58b2e7f2eab9cd82b36e55ca4c7f4 Mon Sep 17 00:00:00 2001 From: Josh Stewart Date: Wed, 25 Feb 2015 13:11:44 +1100 Subject: [PATCH] Adjust pulse width comms accuracy --- comms.ino | 2 +- reference/speeduino 0.2.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/comms.ino b/comms.ino index f79efedb..ae5d7c36 100644 --- a/comms.ino +++ b/comms.ino @@ -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%) diff --git a/reference/speeduino 0.2.ini b/reference/speeduino 0.2.ini index 4f9588a6..09a7ffd0 100644 --- a/reference/speeduino 0.2.ini +++ b/reference/speeduino 0.2.ini @@ -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