View Single Post
  #8   Spotlight this post!  
Unread 22-02-2011, 19:29
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: speed change in teleop

I'd encourage you to look through the code and find the place where the "too fast" motor is being updated. Right click and probe it and get a sense of what values are being sent. Also, be gentle with the joystick and determine what upper it is that you'd want to send. Now change the code to turn the -1 to 1 value into the "-slow value", and "slow value". Keep probing as you insert a multiply by a number less than one or a divide by a number greater than one. Be sure to make all values default when you are happy with it.

Note that this is not a good solution to fix a gear ratio that is way off, but if there isn't much load on the motor, it will make your drivers way more successful.

Greg McKaskle
Reply With Quote