![]() |
Need help programming Double Solenoids!
Hello again, I know I have posted this before but I have made slight modifications to the code and wondered if anyone could take a look at it to see if it has any errors. I ask this because when we tested it, it did not work. The A and B buttons were pressed, it just wasn't moving the piston. I have checked the CAN ID and made sure it is the same as the value I initialized it in the code, so that's not likely to be an issue. Thanks for the help in advance guys.
Robot.java: Code:
package org.usfirst.frc.team4528.robot;Code:
package org.usfirst.frc.team4528.robot; |
Re: Need help programming Double Solenoids!
You never call moveArm() in operatorControl(), which appears (to my tired brain) to be at least some of your issue.
|
Re: Need help programming Double Solenoids!
How silly of me to forget. Thank you for pointing it out to me. One more question however. When I did build the code and test it the compressor still ran despite the command for it to start and stay in a closed loop being inside the moveArm() method I did not call, does anyone know why that it?
Thanks in advance. |
Re: Need help programming Double Solenoids!
The compressor is automatically engaged whenever you have instantiated a solenoid.
You don't need to instantiate the compressor and your Start is redundant. |
| All times are GMT -5. The time now is 01:50. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi