|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
|||||
|
|||||
|
Re: Programming Victors in Java
Quote:
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 |
|
#17
|
||||
|
||||
|
Re: Programming Victors in Java
Quote:
|
|
#18
|
|||||
|
|||||
|
Re: Programming Victors in Java
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? |
|
#19
|
||||
|
||||
|
Re: Programming Victors in Java
Quote:
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 |
|
#20
|
||||
|
||||
|
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!!! |
|
#21
|
|||||
|
|||||
|
Re: Programming Victors in Java
Quote:
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? |
|
#22
|
||||
|
||||
|
Re: Programming Victors in Java
Quote:
We are expecting the motor to move forward and backwards at 100% power. |
|
#23
|
|||||
|
|||||
|
Re: Programming Victors in Java
When you do what exactly? Walk me through the process.
|
|
#24
|
||||
|
||||
|
Re: Programming Victors in Java
What did we do to get the light to be solid? Is that what you are asking?
|
|
#25
|
|||||
|
|||||
|
Re: Programming Victors in Java
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?
|
|
#26
|
||||
|
||||
|
Re: Programming Victors in Java
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.
|
|
#27
|
|||||
|
|||||
|
Re: Programming Victors in Java
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?
|
|
#28
|
||||
|
||||
|
Re: Programming Victors in Java
Quote:
|
|
#29
|
|||||
|
|||||
|
Re: Programming Victors in Java
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?
|
|
#30
|
||||
|
||||
|
Re: Programming Victors in Java
Yes, it blinks until it is enabled. Then it stays solid whether we press it or not.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|