| | Sound.playTone Daniel Carvalho
|
| | hi The Sound.playTone method always return immediatly. It seems that it only puts the information in a queue, which is then played in background. This can be good but can also be a problem to control the program behavior. For instance, i want to (...) (22 years ago, 21-May-03, to lugnet.robotics.rcx.java)
|
| | |
| | | | Re: Sound.playTone Roger Glassey
|
| | | | Hi Daniel, (...) True (...) This does not seem to be a problem with my code; Motor.A.forward(); for (float x=0; x<1000; x+=0.1f) { int sx = (int)(Math.sin(x)*10.../calculate sine once Motor.A.setPower(3+3...0);//avoid negative power (...) (22 years ago, 21-May-03, to lugnet.robotics.rcx.java)
|
| | | | |
| | | | | | Re: Sound.playTone Daniel Carvalho
|
| | | | thanks Roger I think if the sirene is kept working for long time, it starts to get out of sync. Probably because the instructions in the for loop also takes some time to execute. I'm away from my rcx for many months and i don't remeber if i took (...) (22 years ago, 22-May-03, to lugnet.robotics.rcx.java)
|
| | | | |