View Single Post
  #5   Spotlight this post!  
Unread 14-03-2013, 18:15
z_beeblebrox's Avatar
z_beeblebrox z_beeblebrox is offline
Custom User Title
AKA: Cal
FRC #4183 (Bit Buckets)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Cambridge MA
Posts: 811
z_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond repute
Re: Controlling motor speed with joystick scroll

I reccomend against doing something like that. 4183 tried it for our first regional last year and learned that it was nearly impossible to get fine control of our shooter speed due to the slop in the throttle. Before our second competition, we programmed the joysticks to control rate of change in speed rather than speed.

It's pretty simple code to write:
Code:
If speed-up button is pressed, shooter speed = shooter speed + constant

If speed-down button is pressed, shooter speed = shooter speed - constant
Other buttons can be used to stop the shooter or run it at preset speeds.

However, if your shooter works consistently at a range of speeds, the throttle might work fine.
__________________
2012 Utah Regional Rookie All-Star
2013 Phoenix Regional Judge's Award for "design process and prototyping"
2014 Hub City Regional Quality Award, Arizona Regional Excellence in Engineering Award
2015 Arizona East Regional Creativity Award, Winner
2016 Arizona North Regional Finalist, Arizona West Excellence in Engineering Award, Finalist
Reply With Quote