View Full Version : [FTC]: Using the Joysticks - Robot C Tutorial
10-26-2010, 08:52 PM
Our team, Say Watt, started a blog on our website to post our solutions to difficult problems. After receiving a few questions about the details of getting Teleop programs to work in RobotC, we decided to write up a small tutorial on programming Joystick code.
You can find the tutorial here. (http://say-watt.org/wp2/archives/442)
Or, if you know all that already, you can see our earlier post (http://say-watt.org/wp2/archives/391) on how to use motor encoders effectively.
10-27-2010, 08:30 AM
Good work on posting helpful information for other teams.
Since you've put it in a tutorial format, I would suggest taking the examples a little further while keeping the step-by-step approach you used to building up to a full and complete example.
I personally would like to see a tutorial for using the joystick also include:
- a proportionally scaled output for motors from the analog sticks
- a logarithmic scale for motors from the analog sticks (advanced)
- some code for the tophat
- include an example of moving some of the code into a function
I've attached a supplementary training guide which was used at a coaches training camp in Iowa over the summer for some other examples of this type of tutorial. The guide is specific to the demo bot design from ORTOP, but the code examples should be generic enough to still be useful.
Edit: fixed attachment
10-28-2010, 09:11 PM
That is a great resource, thanks for sharing!
So far we haven't needed to scale the outputs because our drivers just flick the joysticks to do small movements. Gamers will be gamers.
One thing that our programmers may post soon is how to ramp the power. It puts less strain on the motors, and can lessen the likelihood of burnouts.
vBulletin® v3.6.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.