A new release of the 3rd Party Driver Suite for RobotC is out! This version is RC1.
The obligatory Changelog:
– Driver for the new HiTechnic IR Seeker v2 (HTDIR) has been added
– Driver for the HiTechnic Compass Sensor, which I had forgotten to include with beta1 has been added
– New experimental function in the NXTCam driver to calculate the average center of all the blobs of a specific colour index.
You can download the driver and documentation from here: [LINK]
The latest documentation can be perused online here: [LINK]
Looks like you’re making progress in color detection. Any chance you can bring the idea over to NXC or NXT-G? And shape detection/color detection over selected cordinates, showing minimum and maximum values?
The camera has the colour detection, I just added a function that allows you to get the average center of a collection of identically coloured blobs. All the data I use for this comes from the camera, I am not doing anything really special with it.
I don’t really use NXC and I am not familiar enough with Labview to make my own NXT-G blocks. Maybe you should take a look at RobotC 🙂
I am not sure what you mean by minimum/maximum values? The camera doesn’t return this data. It only returns an index number of the colour ranges you defined yourself and the coordinates for each blob it detects. Other information simply isn’t made available. The NXTCam2 is not as feature rich as the CMUcam but it is much easier to use. The CMUcam doesn’t have an I2C interface which makes it difficult to hook up to the NXT.
By color detection, I meant having the camera send RBG data of NXT determined pixels to the NXT, then letting the NXT set RBG values for tracking objects without a computer.
You are probably correct that I should try RobotC (I have two NXTs, an RCX, and a Spybot, all programable through RobotC).
By minimum/maximum data, I meant the minimum/maximum cordinates/RBG values. RBG values are normally set by a computer, and cordinates to the rectangle that represents the tracked object is normally sent to the NXT by the camera.
I know there is “enhanced firmware” for the NXT, (to run NXC,) but I think we might need new firmware for the NXTcam to add the suggested features…or an improved NXTcam (V3).
NNG