Go to Post FIRST doesn't graduate you from HS ... your performance in class (your grades) do. - Franchesca [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 01-27-2009, 02:45 AM
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,168
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
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!
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 09:52 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi