Go to Post The only thing I am learning from this thread is the difference between who is arrogant enough to objectify their own interpretations and who is wise enough to question their own interpretations. - Michael Corsetto [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 31-01-2013, 19:11
derekogle37 derekogle37 is offline
Registered User
FRC #4512
 
Join Date: Jan 2013
Location: Washington
Posts: 2
derekogle37 is an unknown quantity at this point
PWM Not going to full on

So I'm using the the set function of the victor class to control a motor, when I pass -1 to the function, the motor goes in full reverse no problem and the victor indicator light goes red. But when I pass 1 as the parameter the motor goes to full speed (or what appears to be), but the green light will not come on on the victor. I've tried putting in a larger value such as 3 or 4 and even 255 but it will not accelerate further nor will the green light come on. To confirm that it was not the controller I switched back to using the robotdrive class with the tankdrive function, and it had no problem going full forward with the green indicator light coming on. I also tried a few different controllers and PWM ports with the same results.

Basically my code is
Code:
//Definition section
Victor* motorlaunch;
//Constructor section
motorlaunch = new Victor(1,3);
//Teleop section
motorlaunch->Set(1);
 


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


All times are GMT -5. The time now is 10:10.

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