View Single Post
  #2   Spotlight this post!  
Unread 09-01-2003, 18:54
Noah's Avatar
Noah Noah is offline
Code Monkey
#0861 (The Gondobots)
Team Role: Programmer
 
Join Date: Apr 2002
Location: Venice, California
Posts: 139
Noah has a spectacular aura aboutNoah has a spectacular aura about
Send a message via AIM to Noah
You might try something like

if RgtMtr > 127 then LftMtr = LftMtr MAX RgtMtr
' If right motor is forward then limit left motors speed to right motors speed.
if RgtMtr < 127 then LftMtr = LftMtr MIN RgtMtr
' If right motor is reverse then limit left motors speed to right motors speed.


Note: This is PBASIC 2.5. It will not run with the 2.0 stamp programmer.

If you need help understanding this, PM me.
__________________
"It's broken? NOOAAHH!!! This is your doing, isn't it!"

"We can fix it in the software!"
"It's a BROKEN GEAR!"