View Single Post
  #12   Spotlight this post!  
Unread 15-02-2012, 04:02
NotInControl NotInControl is offline
Controls Engineer
AKA: Kevin
FRC #2168 (Aluminum Falcons)
Team Role: Engineer
 
Join Date: Oct 2011
Rookie Year: 2004
Location: Groton, CT
Posts: 261
NotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond repute
Re: Jaguar Programming with NetBeans

as mentioned before... if you enable the robot and the light on the jags are still blinking then that means the jag is not properly receiving communication from the digital side car... it should go solid even if your joystick didn't work or if you had no joystick at all.

A blinking light indicated bad comms. This is true for jags and victors.

I would start by making sure your cables work and plugged in correctly. Make sure you are plugged into the PWM slot and not the DIO slot for example.

Then I would look so see where you are instantiating the new jag... you should be instantiating the new jag in RobotInit, AutoInit, or Teleop Init...

Once you have a solid light when the robot is enabled then I would make sure to call the set() method in a loop like teleop period, and you might want to use joystick.getrawaxis( # ) instead of gety() if you still cant command the jags.
Reply With Quote