Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   PWM Not going to full on (http://www.chiefdelphi.com/forums/showthread.php?t=112487)

derekogle37 31-01-2013 19:11

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);


Ether 31-01-2013 19:15

Re: PWM Not going to full on
 
Try calibrating that Victor.

Team3266Spencer 31-01-2013 19:17

Re: PWM Not going to full on
 
Quote:

Originally Posted by Ether (Post 1225510)
Try calibrating that Victor.

Full support of this action. (Y)

derekogle37 01-02-2013 09:45

Re: PWM Not going to full on
 
Worked perfectly, thanks a lot!


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

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