Go to Post some people sing in the shower........i pretend to be an emcee at championships......:cool: - BanksKid [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 14-01-2013, 21:44
tinybob20 tinybob20 is offline
Registered User
AKA: Jeremy
FRC #1559 (DevilTech)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Victor
Posts: 18
tinybob20 is an unknown quantity at this point
Speed Controllers are Confused

We've been having this weird error with victors. When I compile code on my laptop, which changes the victor from on to off based on the press of a button, the victor's light changes from solid red(when the victor is set to 0) to the LED being off(When the victor is set to 1). We compiled the same code on a different laptop, and we got it to work as it should. What I'm asking is if anyone has had the same problem, and if they found a work-around or fix.
  #2   Spotlight this post!  
Unread 14-01-2013, 21:47
nighterfighter nighterfighter is offline
1771 Alum, 1771 Mentor
AKA: Matt B
FRC #1771 (1771)
Team Role: Mentor
 
Join Date: Sep 2009
Rookie Year: 2007
Location: Suwanee/Kennesaw, GA
Posts: 835
nighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant future
Re: Speed Controllers are Confused

The fact that the EXACT same code is causing a problem is...weird.

Are you sure there aren't any minute changes? It could be an issue of the button press is being read inside a loop or something, making the value change/stay changed, whereas in the other version of your code it isn't.
__________________
1771- Programmer, Captain, Drive Team (2009-2012)
4509- Mentor (2013-2015)
1771- Mentor (2015)
  #3   Spotlight this post!  
Unread 14-01-2013, 21:48
inkspell4's Avatar
inkspell4 inkspell4 is offline
Registered User
FRC #3650 (Robo Raptors)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Maryland
Posts: 326
inkspell4 will become famous soon enough
Make sure the IDE on both computers are configured correctly.
__________________
Chesapeake Regional : 2013, 2012, 2011
Rookie Year: 2011
2013 RoboRaptors Team 3650 Programming Team Captain
Team Website : http://www.roboraptorsfrcteam3650.com/index.html
_____________________________________________
  #4   Spotlight this post!  
Unread 15-01-2013, 01:54
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
Re: Speed Controllers are Confused

Quote:
Originally Posted by nighterfighter View Post
The fact that the EXACT same code is causing a problem is...weird.

Are you sure there aren't any minute changes? It could be an issue of the button press is being read inside a loop or something, making the value change/stay changed, whereas in the other version of your code it isn't.
Barring this problem, there is the remote possibility that the WPI libraries on the first computer may be corrupted or out of date (the latter of which is highly unlikely, as I've never seen an unstable WPI library), which means that when code is deployed to the robot, the commands you wrote using the WPI libraries produce different electric signals, resulting in this disparity.

Here's my reasoning (in the case of the former laptop): A solid red light on the Victor implies that the Victor is interpreting the command it's receiving as a -1. No light on the Victor implies that it is receiving a command very, very close to 0, but not close enough or far away enough to trigger a color in the LED. Rounding this signal, the Victor is seeing here a 0 command. Your code is supposed to be sending, respectively, a 0 and 1 command.

Therefore, your Victor is responding to a signal 1 below what the code you've written is intended to send. The libraries that translate the command in the code you write, however, have to do convert that command into a PWM duty cycle to command the Victor, and this conversion is the only point of error that comes to mind.

I can't imagine how anything would change electrically when you just change laptops, and if your code really does stay the same, then the WPI libraries are the only variable you have to deal with.
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners
  #5   Spotlight this post!  
Unread 15-01-2013, 07:29
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,554
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Speed Controllers are Confused

I suspect you may find that you need to calibrate your victor. Neutral is ON solid, so if the LED is off, I suspect you are seeing a forward command at the output of the victor, but not full forward due to a calibration issue. We found that on the Victor 888's it was necessary to calibrate many of them. We rarely saw that issue on the 884's, but we did a couple times.

Check the controller output with a multimeter to see if it is, indeed, changing the output voltage. It doesn't make sense that it would change between laptops, but who knows.
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:24.

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