Quote:
Originally Posted by CNettles11
a couple more questions,
1) can you control digital ouputs from the drivers station?
2)Which DIO wires would run to the trigger?
|
1) You can. In Java, C++ is very similar. You'll need to find someone else to help if you're using LabView.
Code:
DigitalOutput file0 = new DigitalOutput(1);
Joystick stick = new Joystick(1);
//...
public void teleopPeriodic() {
//...
if (stick.getRawButtons(1)){
file0.set(false);
}
else{
file0.set(true);
}
//...
}
}
2) You would connect the signal wire, white, to the pin on the MP3 Trigger device.