View Single Post
  #8   Spotlight this post!  
Unread 19-02-2003, 01:11
Brian_Lim's Avatar
Brian_Lim Brian_Lim is offline
Registered User
#0907 (EY Cybernetics)
 
Join Date: Jan 2002
Location: Toronto
Posts: 16
Brian_Lim is an unknown quantity at this point
Send a message via ICQ to Brian_Lim Send a message via Yahoo to Brian_Lim
Drive Programming

This might be a little off topic, but since this thread is about drive programming, I will risk it.

Our drivers complain about the turning being too sensitive. It is. If you're like our team and new (we're on second year) probably will be using tank steering.

Well my solution so far was to slow down the speed of the turning, and keep the forward and backward motions at full speed.

' Drive Sensitivity Control >>> ---------------------------

if NOT (drive_R > 135 and drive_L < 129) then skip001
drive_R = 127 + ((127-drive_R)/4)
drive_L = 127 - ((drive_L - 127)/4)
skip001

if NOT (drive_R < 129 and drive_L > 135) then skip002
drive_R = 127 + ((127-drive_R)/4)
drive_L = 127 - ((drive_L-127)/4)
skip002

' End Drive Sensitivity Control >>> ----------------------

Just makes it so when turning using 1-stick control, the turning is four times slower. A necessity I think when using tank steering -- turning can be very fast with one motor going full forward and another going full reverse. Also thinking of adding a "full-speed" button on the top of the joystick so the driver can turn full speed if he wants by holding down the button.

I've gotten used to the skewed if statements, haven't upgraded to 2.5 yet, should I?

What do you think, share your code too.

907 Toronto, East York Collegiate
Brian Lim
__________________
907 is back and we won't go quietly...
brianeyci@hotmail.com
brianeyci@yahoo.ca
ICQ #:147900708