It seems Fuel and Reverse Gear is Not working in the App. Hase someone the values?
Fuel was discovered only recently, so it might arrive at a later update. I'm not involved with the app, it's only a guess from my side. Maybe you want to contact them and point them to the
packet table. I didn't test if the reverse gear shows up in the Gears data, maybe it will be -1 if you are in reverse. Will test later.
I'm just stuck now on the acceleration x/y/z (heave/sway/surge). I can't really find figures providing surge for example. A positive value when accelerating becomong negative when braking. Any idea where this one is ?
The acceleration is not in the packet as a data entry, but i guess it could be calculated from the velocities of two consecutive packets A and B and the time between those packets:
- first, determine the time passed between the two packets by subtracting the day time progression in milliseconds of packet B from the one in packet A, in milliseconds
- then, find the velocity difference by subtracting the velocity of packet B from packet A (do this for all velocities in X,Y,Z)
- since acceleration is velocity change over time, divide the velocity difference by the elapsed time
something like this:
dt_ms = day time progression_A - day_time_progression_B
dt_s = dt_ms / 1000.0
dV = (velocity_B - velocity_A)
acceleration = dV / dt_s
acceleration will be in m/s^2.
That said, since the velocity X,Y,Z coordinates are global coordinates IIRC, you will get the acceleration in the global coordinate system -- if the vehicle turns 90 degrees, the velocity in X will be the velocity in Z. I think you want the velocity in car coordinates, so that velocity in X is the velocity of the car going 'forward' all the time, regardless of how the vehicle is oriented globally. For this you will have to use the rotation values (also in the packet) to transform the global velocity to the local car velocity.
I haven't looked into this as of now, but plan to do so when i find some time for this. Maybe someone else has already looked into this and can share some insight or even code?