![]() |
Intake Motors (Electrical/Programming)
We are currently setting up for a display that we are having tomorrow at our school, and we are having some issues with our robot.
It seems that the intake motor is not working. We turned our robot on after the summer break and when we turned it on, the robots intake motors kept spinning when the button was clicked on the joystick, when before they stopped after the button was let go of. So what I did was that I uploaded the code that we had on right before the school year ended. I put this code on and it seems that no matter which button I clicked on the joystick (either the input or output) the intake just kept spinning without stopping for some reason. Then I tried a different code that I think was closer to the competition time than the one we tried before. This time the intake did not keep spinning but they only do one function. We tried many different variation of wiring and programming but not matter what both the intake and outtake buttons did only one thing (either intake or outtake depending on the variation) or sometimes it seemed the motors went opposite ways and nothing happened. We concluded that it was a programming issue(isn't it always), so here is the code without any variation to it: Code:
package edu.wpi.first.wpilibj.templates; |
Re: Intake Motors (Electrical/Programming)
Both conditionals in the if statement that spin the Jaguars do the exact same thing. You're sending the same commands to the same motors, just in a different order. I think you want to invert one of them.
|
Re: Intake Motors (Electrical/Programming)
Quote:
Code:
package edu.wpi.first.wpilibj.templates; |
| All times are GMT -5. The time now is 11:31. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi