Sensor detection using PC API

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

Moderators: 99jonathan, roger, imaqine

Sensor detection using PC API

Postby BCBGleJOS » Mon Feb 15, 2010 9:02 am

Hi all,

We want to make an API to create graphical components for each motors and sensors.
We wanted to ask if it was possible to detect the type of a sensor plugged in a specific port using PC API?

Thank you.
BCBGleJOS
New User
 
Posts: 1
Joined: Mon Feb 15, 2010 8:50 am

Postby gloomyandy » Mon Feb 15, 2010 10:15 am

Hi,
In general no it is not possible to detect the type of sensor attached to a sensor port. You may want to see this thread which covers similar issues (though not for leJOS the issues are pretty much the same):
http://forums.nxtasy.org/index.php?showtopic=4689
Note that some of the techniques described in the above will probably need code on the NXT...

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


Return to NXJ Hardware

Who is online

Users browsing this forum: No registered users and 1 guest

more stuff