View Single Post
  #3   Spotlight this post!  
Unread 29-01-2014, 22:15
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,561
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Code for Can jaguars.

Almost everything in WPILib and the documentation assumes that the sensor is plugged into the cRIO. This includes the PIDController class and PIDSubsystem, etc.

The CANJaguar class is what is used to do PID on the Jaguar. You set the appropriate mode (vbus, position, speed, or voltage) and configure all of the appropriate options. I recommend getting your desired mode working with BDC-COMM first and then copy those options to your robot code.

Other people have posted code using the CANJaguar class, I'd suggest doing some searching.
Reply With Quote