View Single Post
  #1   Spotlight this post!  
Unread 01-15-2015, 09:53 PM
DrOmni9885's Avatar
DrOmni9885 DrOmni9885 is offline
Registered User
FRC #1595 (Dragons)
Team Role: Programmer
 
Join Date: Feb 2013
Rookie Year: 2012
Location: Spokane, WA
Posts: 8
DrOmni9885 is an unknown quantity at this point
Re: Arcade drive/Talon controller problems

Quote:
Originally Posted by alopex_rex View Post
First of all, the l_motor(1.0) call doesn't work because to drive the motor, you need to use the set function: l_motor.Set(1.0). What you have is meaningless, as l_motor is an object, not a function.

As for the arcade drive, I would try first using the ArcadeDrive function with constant inputs (ie ArcadeDrive(1.0, 0.0) ) and see what happens. That way you know the issue isn't with your joystick. It looks like you're using Talons for everything, but if the drive motors aren't talons then the way you initialized dragonBot won't work.

For testing purposes, don't bother with all the loops and timing; just try to run the motor if the button is pressed. The more complicated the code, the harder it is to find what's wrong.
Thanks, figured out the l_motor.Set part today and will create a simple testing program tomorrow.
Reply With Quote