![]() |
How to attach and code fsp 8268909?
Hi I'm from team 4732, I've been having trouble figuring out how to attach/program this button (http://www.repairclinic.com/PartDeta...8268909/830916). Any help you could offer would be greatly appreciated.
|
Re: How to attach and code fsp 8268909?
Wire one side of the switch to ground and the other to a digital input channel.
On the programming side, look at the DigitalInput class: http://team2168.org/javadoc/edu/wpi/...italInput.html |
Re: How to attach and code fsp 8268909?
I was struggling for a long time trying to figure out how to program these to stop motors when pressed and if that's your plan check out this thread: http://www.chiefdelphi.com/forums/sh...=133983&page=4
|
Re: How to attach and code fsp 8268909?
It is hooked up to a PWM cable. You only need to wire the ground and signal (black and white, respectively) as the positive (red) wire has no use in a switch. Instead of plugging it into the PWM section of your RoboRIO, plug it into the section designated for digital inputs.
Programming side: Code:
DigitalInput _switch1 = new DigitalInput(0); |
| All times are GMT -5. The time now is 10:53. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi