Go to Post This has to be the strangest trolling/spam/anything I've seen on CD, ever. - frcguy [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #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);
  #2   Spotlight this post!  
Unread 31-01-2013, 19:15
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: PWM Not going to full on

Try calibrating that Victor.
  #3   Spotlight this post!  
Unread 31-01-2013, 19:17
Team3266Spencer's Avatar
Team3266Spencer Team3266Spencer is offline
Team Captain and Lead Programmer
AKA: Spencer Lanman
FRC #3266 (Robots-R-US)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Richmond, Indiana
Posts: 280
Team3266Spencer is an unknown quantity at this point
Re: PWM Not going to full on

Quote:
Originally Posted by Ether View Post
Try calibrating that Victor.
Full support of this action. (Y)
__________________
2012: Buckeye Regional, Queen City Regional, Human Player
2013: Queen City Regional, Buckeye Regional, Crossroads Regional
Shooter Operator
2014: Crossroads Regional, Queen City Regional
Catapult Operator
2015: Georgia Southern Classic Regional (Winner), Queen City Regional
Chainsaw Operator
Want to talk? TeamSpeak: team3266.noip.me
  #4   Spotlight this post!  
Unread 01-02-2013, 09:45
derekogle37 derekogle37 is offline
Registered User
FRC #4512
 
Join Date: Jan 2013
Location: Washington
Posts: 2
derekogle37 is an unknown quantity at this point
Re: PWM Not going to full on

Worked perfectly, thanks a lot!
Closed Thread


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 02:25.

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