![]() |
Timer for solenoid?
We are using pneumatics with our robot this year and want to know how/if we can use a timer to tell the solenoid to stay open for a certain amount of time.
|
Re: Timer for solenoid?
We have historically used timestamps:
Code:
package edu.wpi.first.wpilibj.templates; |
Re: Timer for solenoid?
There are a few methods. You could used command based programming, and then use it as such (assuming you're using a spike relay, aka bridge driver to control the solenoid):
Code:
public ShootFrisbee() {Code:
solenoid.set(Relay.Value.kOn); |
| All times are GMT -5. The time now is 10:10. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi