View Single Post
  #328 (permalink)  
Old 12-31-2009, 05:11 PM
The Machinist's Avatar
The Machinist
Lurker
Offline
Location: Indiana
 
Join Date: Sep 2009
Posts: 21
Reputation: 155
The Machinist is keeping up the good workThe Machinist is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Android, it's alive!.. (2.0.1) - Updated 12/24

Quote:
Originally Posted by The Machinist View Post
at least it gets you to the edges of the screen! Niether of the two previous ones were very accruate. 0x7a.0x37f.0x35a.0x5e was too low in Y and 0x6a.0x3c1.0x376.0x8a was too high in Y and both had problems in X.

The first thing to determine was what numbers control which direction. the 1st number controls the pointer location in X(+); how far it can go right, the 2nd number is Y(+) how far it goes up, the third is X(-); left and the 4th is Y(-); down. And based on the values of all four numbers determines where the center will fall. Too much in Y(+) makes for a high center etc...

Now adding "3c1" to "37f" and divding by 2 on my calculator didn't yeild very good results (since mine doesn't add letters very well) so I guessed using a method I could never explain logically.

What I came up with seemed like a decent solution according to the "Pointer Location" within the "Dev Tools" app. in the eclair build. If anyone determines a better one I"ll be glad to use it!
Quote:
Originally Posted by Airhead315 View Post
3c1 and 37f are hexadecimal numbers. as are the other numbers you mentioned.

To do calculations in hex use windows calculator and switch to Scientific then put it is hexadecimal mode. (In windows 7 select programmer mode).

(3c1+37f)/2 = 3a0
I think you missed the humor...
__________________
There's no place like G91 G28 X0 Y0 Z0;
Reply With Quote