Search found 7 matches

by xpansive
Mon May 31, 2010 11:26 pm
Forum: NXJ Projects
Topic: Turn when obstacles are present?
Replies: 3
Views: 2271

Its pretty easy, first you need to create a UltrasonicSensor instance: UltrasonicSensor US = new UltrasonicSensor(SensorPort.S4); // Sensor port 4 then do somevariable = US.getDistance(); to get the distance. From there you can make the motors move differently depending on the distan...
by xpansive
Mon May 31, 2010 3:49 am
Forum: NXJ Projects
Topic: PenemuNXT - Exploring map bot
Replies: 10
Views: 5896

Very cool.

I'm considering buying one of those sensors just so I can try this.
by xpansive
Sat May 29, 2010 1:54 am
Forum: NXJ Projects
Topic: Control an NXT from a Scratch-like Environment
Replies: 4
Views: 2426

Interesting idea - I haven't used Scratch, but I've heard its very good for people learning to program.
by xpansive
Mon May 24, 2010 5:08 pm
Forum: NXJ Hardware
Topic: Connection error
Replies: 5
Views: 2277

You might want to try using USB.

Also, which version of Java are you using? The 64-bit one gave me problems.

It would also be helpful if you could post whatever error message its giving you.
by xpansive
Fri May 21, 2010 11:08 pm
Forum: NXJ Hardware
Topic: HiTechnic Colorsensor
Replies: 1
Views: 1704

As far as I know (from looking at the API) this is not possible.
by xpansive
Fri May 21, 2010 2:22 am
Forum: NXJ Projects
Topic: robotfindskitten port
Replies: 2
Views: 2364

...

Well, that was stupid.

I just need to put

MessageDisplay m = new MessageDisplay();
m.start();

before play_game();.

Typical.

Thanks for pointing that out - I'll update the first post with the working code when I test it out.
by xpansive
Thu May 20, 2010 10:57 pm
Forum: NXJ Projects
Topic: robotfindskitten port
Replies: 2
Views: 2364

robotfindskitten port

I've been working on porting robotfindskitten for a couple days now. This will probably be the final version. Here's the full code listing (it's very big :D): /* Port of robotfindskitten to the Lego Mindstorms NXT using leJOS by XPANSiVE. Compile with: nxjc rfk.java nxj -r rfk */ import lejos.nxt.*;...

Go to advanced search