Go to Post Have you hugged your programmer today? - Gabe [more]
Home
Go Back   Chief Delphi > Other > FIRST Tech Challenge
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 26-10-2010, 21:52
normalmutant's Avatar
normalmutant normalmutant is offline
Registered User
AKA: Nathan
FTC #3539 (Say Watt?)
Team Role: Alumni
 
Join Date: Apr 2010
Rookie Year: 2006
Location: Edison, NJ
Posts: 126
normalmutant has a spectacular aura aboutnormalmutant has a spectacular aura about
Lightbulb [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.
__________________
SAY-WATT.ORG
Reply With Quote
  #2   Spotlight this post!  
Unread 27-10-2010, 09:30
l0jec l0jec is offline
Registered User
no team
 
Join Date: Oct 2009
Rookie Year: 2004
Location: St. Louis, MO
Posts: 52
l0jec has a spectacular aura aboutl0jec has a spectacular aura about
Re: [FTC]: Using the Joysticks - Robot C Tutorial

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
Attached Files
File Type: doc ROBOTC_Training_Guide.doc (1.42 MB, 320 views)
Reply With Quote
  #3   Spotlight this post!  
Unread 28-10-2010, 22:11
normalmutant's Avatar
normalmutant normalmutant is offline
Registered User
AKA: Nathan
FTC #3539 (Say Watt?)
Team Role: Alumni
 
Join Date: Apr 2010
Rookie Year: 2006
Location: Edison, NJ
Posts: 126
normalmutant has a spectacular aura aboutnormalmutant has a spectacular aura about
Re: [FTC]: Using the Joysticks - Robot C Tutorial

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.
__________________
SAY-WATT.ORG
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The KOP Joysticks suck for controlling the Robot Labot2001 Chit-Chat 2 14-02-2010 17:05
What Joysticks are you using? GEARmaster08 FRC Control System 1 05-02-2010 17:24
[FTC]: Tips page on using FTC Encoders with LabVIEW PhilBot FIRST Tech Challenge 7 27-01-2009 14:00
Robot Joysticks and OI included in the shipping? iPilipino General Forum 1 19-02-2008 11:04
using easyC to give more control to the joysticks Neurovirus Programming 5 26-01-2008 18:38


All times are GMT -5. The time now is 12:56.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi