|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Victor::Set not working
I am sure this is operator error somehow but I don't see it. I initialize a new Victor instance like this:
... #define CARD_HELICALRAMP 4 #define PWM_HELICALRAMP 3 ... pMotor = new Victor(CARD_HELICALRAMP, PWM_HELICALRAMP); ... and use it like this: ... pMotor->Set(fMotor); ... The pMotor member pMotor is *Victor type and fMotor is a float. The physical output is not updating. No error messages appear on the console. Am I doing something wrong? I know the function is getting called and I know the fMotor value is in the correct range (I put a printf just before the line above). The Set call is from a different task but that should not matter (I think). This is the only PWM I have declared at this point (no RobotDrive or anything else). Does that matter? I have only one sidecar hooked up to the DIO in slot 4. This is wired to PWM 3. Do I have to start at PWM 0 for some undocumented reason? Any advice or help is much appreciated! |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can not set team number on DS | TekClaz | FRC Control System | 2 | 12-23-2008 02:25 PM |
| p2 not working? | Lone_Wolf92c | Programming | 5 | 02-22-2008 08:49 AM |
| IR Board Not Working (But NOT Fried) | itsme | Electrical | 2 | 02-18-2008 06:11 AM |
| Issues with non working victor constant orange led | dani190 | Control System | 10 | 12-21-2007 10:32 PM |
| Victor 884's not behaving the same as Victor 883's | programmer1 | Programming | 13 | 03-10-2004 09:51 PM |