Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: Ram air maps ??


Veteran Member

Status: Offline
Posts: 74
Date:
Ram air maps ??




-- Edited by ffaspector on Saturday 17th of October 2009 11:31:03 AM

__________________


Guru

Status: Offline
Posts: 963
Date:

Actually the last map is 4 separate maps. The 96 144 16 is a map header bytes that specifies the low bound, range and interval of the X axis of the map.

sub_7194 that processes these 2D maps has the value in A as an input. In this case 8 bit RPM value in 84h, Z. The routine outputs a map cell value between 0 and (range/interval) in this case 144/16 or 9

Any value 0-96 is map cell 0
The high value (low+range) or 144+96 or 240 is the high bound or map cell 9
The cells in between are at an interval of 16 so you get...

0 = 96
1 = 112
2 = 128
3 = 144
4 = 160
5 = 176
6 = 192
7 = 208
8 = 224
9 = 240

These values can be converted to real RPM using RPM = (value * 256 ) / 5.12


0 = 4800
1 = 5600
2 = 6400
3 = 7200
4 = 8000
5 = 8800
6 = 9600
7 = 10 400
8 = 11 200
9 = 12 000

Also on the map values the code shows the default as 128. I would subtract 128 from your displayed map...anything under 128 being a negative offset, anything over 128 a positive value.





__________________
Page 1 of 1  sorted by
 
Quick Reply

Please log in to post quick replies.

Tweet this page Post to Digg Post to Del.icio.us


Create your own FREE Forum
Report Abuse
Powered by ActiveBoard