CAJ Innovations Forums | |
https://www.cajinnovations.com.au/forum/YaBB.pl
MyECU >> MyECU Advanced usage >> Raw serial parsing https://www.cajinnovations.com.au/forum/YaBB.pl?num=1252565853 Message started by raz on 09/10/09 at 16:57:33 |
Title: Raw serial parsing Post by raz on 09/10/09 at 16:57:33
We are writing a plugin that takes serial data from MyECU and feeds it to Innovate's LogWorks 3. It seems the published info is incorrect about BaroAdjust in the compensation info:
uint16_t BaroAdjust; // The correction factor calculated from air pressure and temperature 1024 is 100% - no change from map We don't seem to get it right unless we divide by 16 or bit shift by four. This is raw data and how ECUControl parses it: =112030213920010030359175917000023470DC5DC =310FC03DB4317B4EA01EA010004371717B4DB =00EAD01CA002303A6037401F4014601F8 Map (7.8,4.1) RPM=3242 Inj=5977us BaroAdj=106.0% o2Adj=102.2% o2[3] o2Target=2.39V o2=2.09V OilT=80.0C AirT=11.0C AirP=1020mb Thro=372 Bat=13.92V The =3 line says DB43. If we swap it to 0x43DB, right shift by 4 and divide by 1024 we get 1.06 which correcsponds with the 106%. Is this the right way to do it? |
CAJ Innovations Forums » Powered by YaBB 2.4! YaBB © 2000-2009. All Rights Reserved. |