[FTC]: Using the Joysticks - Robot C Tutorial

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.

Or, if you know all that already, you can see our earlier post on how to use motor encoders effectively.

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

ROBOTC_Training_Guide.doc (1.42 MB)


ROBOTC_Training_Guide.doc (1.42 MB)

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.