View Single Post
  #18   Spotlight this post!  
Unread 24-02-2003, 21:45
rust710's Avatar
rust710 rust710 is offline
Registered User
#0862 (Lightning Robotics)
 
Join Date: Dec 2002
Location: Canton, MI
Posts: 103
rust710 is an unknown quantity at this point
Send a message via AIM to rust710
Alex you are tired or really not with it. Where did you get 393? Actually I am not doing it like that at all. This is how I am doing it.

Code:
POT = (POT*127)/254 'Gives me a perportional number between 0 and 127

if POT<63 then
Left_drive = 127 + POT
Right_drive = 125 'Locks wheel
else
Left_drive = 125 'Locks wheel
Right_drive = 127 + (254 + POT)
endif
I think this is right but it is late and I can't find the source I wrote earilier.
__________________
Andrew Radamis
Programmer on 862
info@lightingrobotics.com