View Single Post
  #2   Spotlight this post!  
Unread 18-02-2011, 16:48
davidalln's Avatar
davidalln davidalln is offline
World's Worst Coder
AKA: David Allen
FRC #2415 (The Westminster Wiredcats)
Team Role: Programmer
 
Join Date: Mar 2009
Rookie Year: 2008
Location: Atlanta, GA
Posts: 108
davidalln is on a distinguished road
Send a message via AIM to davidalln
Re: C++ Motor contorls

Yes, you are correct. Setting both a jag and a victor look like the following:

Code:
myVictor.Set(0.5);
myJag.Set(0.5);
Where the parameter is a floating point number between -1.0 and 1.0.

Whenever you don't know which function to call, take a look at either the WPILib source code or the doxygen documentation. It will tell you which classes can run what.
__________________
SANTOSH ANDREW DECKER RICK WYNNIE SEAN DEREK MATT
(alamo (semis), p'tree (CHAMPS!), nc (CHAMPS!), newton (quarters))


Best four years of my life. Thanks to everyone who made it happen.
Reply With Quote