NullPointer in CompassNavigator

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

Moderators: imaqine, 99jonathan, roger

New User
Posts: 24
Joined: Fri Nov 16, 2007 6:18 pm
Location: Russia

NullPointer in CompassNavigator

Postby vladra » Sat Jan 26, 2008 9:35 am

This fragment throws NullPointerException:

Code: Select all

CompassNavigator navigator = new CompassNavigator(new CompassPilot(SensorPort.S2, 5.6f, 10.7f, Motor.C, Motor.B));

Exception occurs in rotateTo.

But the following fragment work fine:

Code: Select all

CompassNavigator navigator = new CompassNavigator(SensorPort.S2, 5.6f, 10.7f, Motor.C, Motor.B)

User avatar
Site Admin
Posts: 392
Joined: Fri Aug 04, 2006 4:03 pm

Postby bbagnall » Fri Feb 01, 2008 3:54 am

Thanks for spotting that Vladra. I've made a change to the source code that should fix that.

Return to “NXJ Software”

Who is online

Users browsing this forum: No registered users and 3 guests