[SOLVED] - NXTMMX trouble

This is where you talk about the NXJ hardware related topics such as the brick, sensors, LEGO pieces, etc.

Moderators: 99jonathan, roger, imaqine

[SOLVED] - NXTMMX trouble

Postby Rickz2020 » Thu Aug 04, 2011 2:42 pm

Hi all,

my new NXTMMX arrived today so I downloaded the NXTMMX.java and NXTMMXMotor.java to play around with it, but there seems to be some errors.

(1)public class NXTMMX extends I2CSensor{ ....class NXTMMX is public, should be declared in a file named NXTMMX.java

(2)super(port, address, I2CPort.LEGO_MODE, TYPE_LOWSPEED);......cannot find symbol
symbol: constructor I2CSensor(lejos.nxt.SensorPort,int,int,int)
location: class lejos.nxt.I2CSensor

(3) if I comment out: super(port, address, I2CPort.LEGO_MODE, TYPE_LOWSPEED); ...... I get the error: cannot find symbol
symbol: constructor I2CSensor()
location: class lejos.nxt.I2CSensor

Unused Parameter

Before I start changing stuff - is this compatible with .85? My firmware is .85.

Any ideas what the problem is (other than me possibly being a moron.)?

Thanks.
Last edited by Rickz2020 on Thu Aug 04, 2011 10:47 pm, edited 1 time in total.
Rickz2020
Active User
 
Posts: 121
Joined: Thu Feb 10, 2011 5:47 pm
Location: London, Earth.

Re: NXTMMX trouble

Postby gloomyandy » Thu Aug 04, 2011 3:49 pm

Is there a reason why you are not using 0.9.0? There have been a lot of changes in the API since 0.8.5 and I'm not surprised you are running into issues trying to use that code. These classes are provided as standard in 0.9.0

Andy
User avatar
gloomyandy
leJOS Team Member
 
Posts: 3881
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Re: NXTMMX trouble

Postby Rickz2020 » Thu Aug 04, 2011 4:14 pm

I just hadn't got round to updating, but I guess it's about time I did.

Thanks.
Rickz2020
Active User
 
Posts: 121
Joined: Thu Feb 10, 2011 5:47 pm
Location: London, Earth.

Re: NXTMMX trouble

Postby Rickz2020 » Thu Aug 04, 2011 10:47 pm

Well, I updated to 0.9.0 and BOOM. Works like a beauty!

Great job guys!

You make it too east o_O

Rich.
Rickz2020
Active User
 
Posts: 121
Joined: Thu Feb 10, 2011 5:47 pm
Location: London, Earth.


Return to NXJ Hardware

Who is online

Users browsing this forum: No registered users and 4 guests

cron
more stuff