View Single Post
  #9   Spotlight this post!  
Unread 14-03-2011, 01:49
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: Play sound file with FRC Control system?

Quote:
Originally Posted by CNettles11 View Post
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.
__________________
Eric Haskins KC9JVH
Reply With Quote