View Single Post
  #4   Spotlight this post!  
Unread 01-04-2015, 16:04
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,353
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: pic: Makeshift Kiwi Vex-FTC-FRC hybrid

Quote:
Originally Posted by Andrew Schreiber View Post
Working on similar. One issue I've been running into is the transition between turning and not turning. On the comp bot (H drive) this year we just have the driver toggle between heading lock mode and not. But that's not really a great solution long term. Any suggestions?
Absolutely.

How I got the Vex Kiwi to transition between Gyro stabilization (Heading Lock) and open loop control is really simple. I just sampled the "Rotation" input from the joystick, and used a "window" to detect when rotation was being commanded. Any rotation input outside the window caused the gyro input to be ignored and allowed the rotation command to control the rotation of the robot. As soon as the rotation input entered the window again, the current gyro direction value was set to zero and then the gyro direction was used to control the rotation once again.

One key to making this transition smooth is to set the "window" to closely match the range of the "Rotation" command deadband that doesn't quite make a change in the robot's rotation.
IIRC, that range for the Vex was from >122 to <130.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
Reply With Quote