Go to Post Don't bring a distraction to the field. - Al Skierkiewicz [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-02-2014, 15:29
danruff5 danruff5 is offline
Hobbiest Programmer
FRC #4525 (Rambot)
Team Role: Programmer
 
Join Date: Apr 2013
Rookie Year: 2013
Location: Springfield
Posts: 13
danruff5 is an unknown quantity at this point
Playing Sound Through Computer

This year our robot has two large pistions that loads an elastic to hit the ball to shoot it. If the pressure is low the pistons take a long time fully lock the pistons. I have a switch to detect when its in the correct location to retract them before fireing.

During pratice the idea came up to inform the drivers of when its ready to fire. However it takes a long time to have to look down at the computer to the Smartdashboard. The idea came up to make a sound play! This sounds really cool but many of the programmers on our team have been doing lots of research on how to do this.

We have found a way to play .wav files through a simple java program. However it requeires javax. So my question is how do we get javax into the robot? OR: How do we get the computer to play a sound file from the robot?

Thank you! I think that this is really cool idea and we have plans to make different sounds at different times. The robot will takl to the drivers!

Also... sorry for my lack of spelling ability.
__________________
100101010101
Reply With Quote
  #2   Spotlight this post!  
Unread 20-02-2014, 15:34
NWChen's Avatar
NWChen NWChen is offline
Alum
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: New York City
Posts: 205
NWChen is a splendid one to beholdNWChen is a splendid one to beholdNWChen is a splendid one to beholdNWChen is a splendid one to beholdNWChen is a splendid one to beholdNWChen is a splendid one to beholdNWChen is a splendid one to behold
Re: Playing Sound Through Computer

There are a few other factors (like loud music blaring in the background of every match) that you may want to take into account before having your robot or operator console play sound. See this discussion.

Have you considered force feedback on your joysticks/controllers or adding bright lights to your operator console that change color when ready?
__________________
2012 - 2015 • Team 2601

Reply With Quote
  #3   Spotlight this post!  
Unread 20-02-2014, 15:35
Jon Stratis's Avatar
Jon Stratis Jon Stratis is online now
Mentor, LRI, MN RPC
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,826
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Playing Sound Through Computer

It might be difficult to hear a sound during the match... the arena gets pretty loud!

Another option would be to include some simple LED strips on the robot (You can usually find some cheap red/blue ones in the Walmart Auto section). Hook them up to a spike, and your programmers can have them flash or turn on when the switch is pressed. At least that way the LED's are right where the drivers are already looking!
__________________
2007 - Present: Mentor, 2177 The Robettes
LRI: North Star 2012-2016; Lake Superior 2013-2014; MN State Tournament 2013-2014, 2016; Galileo 2016; Iowa 2017
2015: North Star Regional Volunteer of the Year
2016: Lake Superior WFFA
Reply With Quote
  #4   Spotlight this post!  
Unread 20-02-2014, 15:42
danruff5 danruff5 is offline
Hobbiest Programmer
FRC #4525 (Rambot)
Team Role: Programmer
 
Join Date: Apr 2013
Rookie Year: 2013
Location: Springfield
Posts: 13
danruff5 is an unknown quantity at this point
Re: Playing Sound Through Computer

Quote:
There are a few other factors (like loud music blaring in the background of every match) that you may want to take into account before having your robot or operator console play sound. See this discussion.
I have read that discussion.

For the sound issue I was thinking about using headphones for the drivers is they could not hear.

I also wanted to have this as a "cool" factor to have our robot talk.

Quote:
Have you considered force feedback on your joysticks/controllers or adding bright lights to your operator console that change color when ready?
We are using an xbox controller, I dont think it has any force feedback (but I might be wrong).

Thank you for the fast response!!
__________________
100101010101
Reply With Quote
  #5   Spotlight this post!  
Unread 24-02-2014, 19:49
danruff5 danruff5 is offline
Hobbiest Programmer
FRC #4525 (Rambot)
Team Role: Programmer
 
Join Date: Apr 2013
Rookie Year: 2013
Location: Springfield
Posts: 13
danruff5 is an unknown quantity at this point
Re: Playing Sound Through Computer

What I think I have to do is have another program running on the computer. The robot would then send a signal to the computer which the other program would interpret it and then play a sound file based on that.

What would I have to do to make the other program and make the robot communicate with it (unless you have another idea).

Thanks!

P.S. I still want to do this because I think it will be really cool (not necessarily for the competition).
__________________
100101010101
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:41.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi