Thread: Jaguar Cut-Out
View Single Post
  #4   Spotlight this post!  
Unread 25-02-2012, 18:04
blakeelias's Avatar
blakeelias blakeelias is offline
2011 CT chairman's award
FRC #0694 (Stuypulse)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: New York
Posts: 26
blakeelias is an unknown quantity at this point
Re: Jaguar Cut-Out

Quote:
Originally Posted by dyanoshak View Post
Look in the WPI libraries for a function that checks a "Power Cycled" flag or something similar. Using this flag you can tell if your Jaguar has reset and you can send the configuration data again.
There is a getPowerCycled() method on CANJaguar. Though at this point I don't even know if I would trust that, as the Jag software has been giving us too many surprises. We have encoders on both of these motors so we can tell when they've stopped moving and at that point re-send the config data. The power-cycled signal would come earlier than that (if it does actually come), so I guess we could re-send both after the power cycle AND speed dropping to 0.
__________________
http://blakeelias.com