JeJOS NXT 2.0 Segway with color sensor

This is where you talk about the NXJ software itself, installation issues, and programming talk.

Moderators: roger, imaqine, 99jonathan

janvos2506
Novice
Posts: 34
Joined: Mon Oct 24, 2011 8:58 pm

JeJOS NXT 2.0 Segway with color sensor

Postby janvos2506 » Thu Oct 27, 2011 8:48 pm

Hey!

I'm coding a segway right now and it goes pretty well but,
i have a very stupid problem.
Making the motors move the right way isn't a problem the problem is to make it beep every 3 seconds 4 times and on the 4th beep activate the sensor.
Is there a lejos timer class sample for this?

Thanks

User avatar
kirkpthompson
leJOS Team Member
Posts: 305
Joined: Wed Dec 05, 2007 1:27 am
Location: New Mexico, USA

Re: JeJOS NXT 2.0 Segway with color sensor

Postby kirkpthompson » Fri Oct 28, 2011 1:59 am

Try

Code: Select all

 Delay.msDelay(3000);
for a 3 second delay.

-K
Leg Godt!


Return to “NXJ Software”

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron