5,389
edits
m ("polished"? what the?) |
|||
Line 321: | Line 321: | ||
More, later... | More, later... | ||
'''X''' is value from binary in decimal (converted) | :Here is kinda "polished" formula how to get angle in degrees from binary data and vice versa. | ||
:'''X''' is value from binary in decimal (converted) | |||
:'''α''' is angle in degrees | |||
:α= X*2,4/436,9 | |||
:X= α*436,9/2,4 | |||
:Receipt is easy. Get value from binary data and conver it into decimal. this number is '''X''', so use first formula to get angle. Maybe these formulas can be shorted even more, but I think this is both quite nice and accurate. | |||
::[[User:Loser|Loser]] 21:13, 12 July 2007 (CEST) | |||
:Can't see what's so un-nice about 8192/45 and 45/8192 or (duh) 65536/360 and 360/65536... | |||
:For dequantization to radians, the engine uses 9.587526e-5= 2*PI/65535 as detailed [[OBD:TRAM/raw0x34#Compression_size_6|ABOVE]]. | |||
:(although in my opinion it's more consistent to use 9.587380e-5= 2*PI/65536 ... oh well) | |||
::[[User:Geyser|geyser]] 04:37, 13 July 2007 (CEST) | |||
===Compression size 16=== | ===Compression size 16=== |