View Single Post
  #5   Spotlight this post!  
Unread 20-02-2011, 00:34
dboisvert dboisvert is offline
Registered User
AKA: Dan Boisvert
FRC #2405 (Divided by Zero)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Michigan
Posts: 57
dboisvert is an unknown quantity at this point
Re: Victors not working please help

Make sure you are declaring the victor properly

Code:
Victor* vicShoulder;
Further down, you should have something along these lines
Where the PWM number is where you plug it into your digital sidecar

Code:
vicShoulder = new Victor(PWMNUMBERHERE);
Once the victor has been declared and constructed you need to actually call it or set it to some value

Code:
vicShoulder->Set(float value of speed);
Remember that once you set it you will want to also shut it back off by sending it a 0


Make the appropriate changes, and if still does not work put a multimeter on the proper pwm output channel to see if its a bad victor or not.
Reply With Quote