Go to Post There was a manual? - Taylor [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 13-02-2014, 10:33
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,729
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Programming Victors in Java

Quote:
Originally Posted by 18mfogwell View Post
We think that we have verified the problem is in the code. Can somebody look at the code again and double check for errors?

Thanks!
The reason that I'm confident that its not the code is the fact that

Code:
Victor Scoop = new Victor(4);  //The motor in port 4 of the DS is called Flap
Victor Window = new Victor(5);  //The motor in port 5 of the DS is called Lift
Victor Pulley = new Victor(6);  //The motor in port 6 of the DS is called Roll
those three lines alone would cause the Victors' lights to become a steady orange when the robot is enabled. The fact that they are blinking orange makes me believe something is going on elsewhere. Unless of course there are errors appearing in the console when you run that we're not aware of. Are there any errors in the netbeans console when you run the code?
Reply With Quote
  #17   Spotlight this post!  
Unread 13-02-2014, 10:39
18mfogwell's Avatar
18mfogwell 18mfogwell is offline
Registered User
AKA: Michelle Fogwell
FRC #4460 (Green MASHine)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Pennsylvania
Posts: 42
18mfogwell is an unknown quantity at this point
Re: Programming Victors in Java

Quote:
Originally Posted by notmattlythgoe View Post
The reason that I'm confident that its not the code is the fact that

Code:
Victor Scoop = new Victor(4);  //The motor in port 4 of the DS is called Flap
Victor Window = new Victor(5);  //The motor in port 5 of the DS is called Lift
Victor Pulley = new Victor(6);  //The motor in port 6 of the DS is called Roll
those three lines alone would cause the Victors' lights to become a steady orange when the robot is enabled. The fact that they are blinking orange makes me believe something is going on elsewhere. Unless of course there are errors appearing in the console when you run that we're not aware of. Are there any errors in the netbeans console when you run the code?
No, there are no errors
Reply With Quote
  #18   Spotlight this post!  
Unread 13-02-2014, 10:44
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,729
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Programming Victors in Java

Quote:
Originally Posted by 18mfogwell View Post
No, there are no errors
Any chance we could get a picture of the connections on both ends of the pwm cables for the victors? Meaning the one end going into the Victors and the other end going into the Digital Sidecar?

Also, you said that you verified that you are pretty sure it is a code issue. What steps did you take to verify this?
Reply With Quote
  #19   Spotlight this post!  
Unread 13-02-2014, 10:51
MamaSpoldi's Avatar
MamaSpoldi MamaSpoldi is offline
Programming Mentor
AKA: Laura Spoldi
FRC #0230 (Gaelhawks)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Shelton, CT
Posts: 307
MamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant future
Re: Programming Victors in Java

Quote:
Originally Posted by 18mfogwell View Post
We think that we have verified the problem is in the code. Can somebody look at the code again and double check for errors?

Thanks!
I looked at the code as well and see no errors in it.

I also agree with the others who have pointed out that the flashing orange light on the Victors is an indication that it is not getting any signal. You could think of this as meaning that it is not "attached" to the software. This will occur when you have not programmed in that device yet (ie. you have no declaration that specifies that PWM port number) or if the cable is faulty or not connected properly. Have you verified that they are plugged in correctly (ie. not backwards, signal pin in the correct position).
__________________

Last edited by MamaSpoldi : 13-02-2014 at 10:53. Reason: one more thought
Reply With Quote
  #20   Spotlight this post!  
Unread 13-02-2014, 11:36
18mfogwell's Avatar
18mfogwell 18mfogwell is offline
Registered User
AKA: Michelle Fogwell
FRC #4460 (Green MASHine)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Pennsylvania
Posts: 42
18mfogwell is an unknown quantity at this point
Re: Programming Victors in Java

When we place the victor into a drive port (ports 1, 2, 9, or 10 via PWM) it works fine, so we are thinking maybe something in the code is preventing the digital sidecar from giving power to any other ports. Also, when it is in its regular port the cRIO can connect to it (the orange light is solid) it just doesn't move.

Any ideas??

Thanks!!!
Reply With Quote
  #21   Spotlight this post!  
Unread 13-02-2014, 11:40
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,729
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Programming Victors in Java

Quote:
Originally Posted by 18mfogwell View Post
When we place the victor into a drive port (ports 1, 2, 9, or 10 via PWM) it works fine, so we are thinking maybe something in the code is preventing the digital sidecar from giving power to any other ports. Also, when it is in its regular port the cRIO can connect to it (the orange light is solid) it just doesn't move.

Any ideas??

Thanks!!!
Ok, so not it is solid orange and not blinking? Was this always the case?

Are you sure the buttons you are getting from the joystick are the correct ones? What are you expecting the behavior of the motors to be when you press these buttons?
Reply With Quote
  #22   Spotlight this post!  
Unread 13-02-2014, 11:46
18mfogwell's Avatar
18mfogwell 18mfogwell is offline
Registered User
AKA: Michelle Fogwell
FRC #4460 (Green MASHine)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Pennsylvania
Posts: 42
18mfogwell is an unknown quantity at this point
Re: Programming Victors in Java

Quote:
Originally Posted by notmattlythgoe View Post
Ok, so not it is solid orange and not blinking? Was this always the case?

Are you sure the buttons you are getting from the joystick are the correct ones? What are you expecting the behavior of the motors to be when you press these buttons?
No, it wasn't always the case. It just started being solid light.
We are expecting the motor to move forward and backwards at 100% power.
Reply With Quote
  #23   Spotlight this post!  
Unread 13-02-2014, 11:49
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,729
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Programming Victors in Java

Quote:
Originally Posted by 18mfogwell View Post
No, it wasn't always the case. It just started being solid light.
We are expecting the motor to move forward and backwards at 100% power.
When you do what exactly? Walk me through the process.
Reply With Quote
  #24   Spotlight this post!  
Unread 13-02-2014, 11:50
18mfogwell's Avatar
18mfogwell 18mfogwell is offline
Registered User
AKA: Michelle Fogwell
FRC #4460 (Green MASHine)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Pennsylvania
Posts: 42
18mfogwell is an unknown quantity at this point
Re: Programming Victors in Java

Quote:
Originally Posted by notmattlythgoe View Post
When you do what exactly? Walk me through the process.
What did we do to get the light to be solid? Is that what you are asking?
Reply With Quote
  #25   Spotlight this post!  
Unread 13-02-2014, 11:53
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,729
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Programming Victors in Java

Quote:
Originally Posted by 18mfogwell View Post
What did we do to get the light to be solid? Is that what you are asking?
No. Walk me through what your operator should do to get the motor to turn full forward/backward. Which button they are going to press and are they just pressing it or are they holding it? What should happen when they let the button go?
Reply With Quote
  #26   Spotlight this post!  
Unread 13-02-2014, 11:56
18mfogwell's Avatar
18mfogwell 18mfogwell is offline
Registered User
AKA: Michelle Fogwell
FRC #4460 (Green MASHine)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Pennsylvania
Posts: 42
18mfogwell is an unknown quantity at this point
Re: Programming Victors in Java

Quote:
Originally Posted by notmattlythgoe View Post
No. Walk me through what your operator should do to get the motor to turn full forward/backward. Which button they are going to press and are they just pressing it or are they holding it? What should happen when they let the button go?
Okay, the buttons are buttons 1 & 2. Not sure which makes it go forward, which one backwards. So if they press it, it will move until they let go. When our driver lets go, it wont move.
Reply With Quote
  #27   Spotlight this post!  
Unread 13-02-2014, 11:59
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,729
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Programming Victors in Java

Quote:
Originally Posted by 18mfogwell View Post
Okay, the buttons are buttons 1 & 2. Not sure which makes it go forward, which one backwards. So if they press it, it will move until they let go. When our driver lets go, it wont move.
Ok, your code seems to include that logic in it correctly. A couple of things to check, are you sure the buttons that are getting pressed are actually mapped to buttons 1 and 2, and have you checked to make sure your operator joystick is in slot 3 in the setup tab of the driver station?
Reply With Quote
  #28   Spotlight this post!  
Unread 13-02-2014, 12:10
18mfogwell's Avatar
18mfogwell 18mfogwell is offline
Registered User
AKA: Michelle Fogwell
FRC #4460 (Green MASHine)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Pennsylvania
Posts: 42
18mfogwell is an unknown quantity at this point
Re: Programming Victors in Java

Quote:
Originally Posted by notmattlythgoe View Post
Ok, your code seems to include that logic in it correctly. A couple of things to check, are you sure the buttons that are getting pressed are actually mapped to buttons 1 and 2, and have you checked to make sure your operator joystick is in slot 3 in the setup tab of the driver station?
Yea we are doing that correctly, do you know of anything in the code preventing the power from going to slots 3-8? because 1, 2, 9, and 10 work fine. But even though they don't move the cRIO can still see them.
Reply With Quote
  #29   Spotlight this post!  
Unread 13-02-2014, 12:24
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,729
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Programming Victors in Java

Quote:
Originally Posted by 18mfogwell View Post
Yea we are doing that correctly, do you know of anything in the code preventing the power from going to slots 3-8? because 1, 2, 9, and 10 work fine. But even though they don't move the cRIO can still see them.
Not that I can tell. When you hold down button 1 or button 2 on the operator joystick what does the light on the Window Victor do? Does it stay a solid orange?
Reply With Quote
  #30   Spotlight this post!  
Unread 13-02-2014, 12:30
18mfogwell's Avatar
18mfogwell 18mfogwell is offline
Registered User
AKA: Michelle Fogwell
FRC #4460 (Green MASHine)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Pennsylvania
Posts: 42
18mfogwell is an unknown quantity at this point
Re: Programming Victors in Java

Quote:
Originally Posted by notmattlythgoe View Post
Not that I can tell. When you hold down button 1 or button 2 on the operator joystick what does the light on the Window Victor do? Does it stay a solid orange?
Yes, it blinks until it is enabled. Then it stays solid whether we press it or not.
Reply With Quote
Reply


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 22:00.

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