I have a Dash2 and my intention is to use a microprocessor rather than the CAN Adapter (If I can't get the adapter working properly).
I am setting up the serial datastream to the Dash2, and the documentation is somewhat lacking.
This is a U-S legal vehicle, so I will need the odometer functional. I would like to use as few as possible analog inputs.
I would like to use the Serial stream for as much data as possible as I have a standalone ECU that provides most data I require. Things like Turn Signals, high beams, warning lights, and battery are connected properly (analog).
I have been scouring the serial stream information and I actually have the RPM and Speedometer working somewhat. My question is in regards to the f(x) when it comes to speed calculation.
I understand that ID 11 is for GPS speed. I will not be using a GPS. I am using the driven wheelspeed from the CAN datastream (It reads from the speed sensor in the transmission). ID11 is such that:
Code: Select all
Speed (m/s) = (Data1 * 2^24 + Data2 * 2^16 + Data3 * 2^8 + Data4)* 0.01
SpeedAcc (m/s) =( Data6 * 2^16 + Data7 * 2^8 + Data8)* 0.01
Data source = Data5
0 = raw GPS data
1 = non GPS speed
This being said, I have 8 unsigned bits, so a value of 0 to 256. I am trying to take that integer and convert it into a Race-Technologies-compatible serial stream.
Are those karats meant to be pow() operators? That is, would a packet of 0xB 0x01 0x00 0x00 0x00 0x01 0x00 0x00 0x0D output a speed of 167772.16 m/sec?
There used to be some sample code on the site somewhere (I've read mention of it), but I cannot find it anywhere.
Is there another VAR that I can use that will allow for an accurate odometer?