This code returns good values in R, G and B with RobotC 3.04, but in 3.51, sensorRaw and getColorSensorData return juste "0" Or it is possible to use the color sensor v2 by HiTechnic with RobotC 3.04?!please help me quickly thx

Wed Oct 31, 2012 8:31 am

swe_mckvack

Rookie

Joined: Mon Jan 07, 2013 6:16 pmPosts: 4

Re: bug with RGB (v3.51)

I just spent 3 hours debugging my code before i found this bug report.Tried running the example ColorSensor.c (LEGO Color Sensor) and that doesn't work either.

The LEGO Colour Sensor and the HiTechnic Colour Sensor are two completely different sensors. For the HT one, you need to use sensorI2CHiTechnicColor and not sensorCOLORFULL, which is for the LEGO sensor.

For a longer explanation:When running the example code the main screen that shows AtoD, Raw and Value does not work. If I change mode to e.g. RED (pushing left/right button) than all the values are displayed in realtime and with correct values.So the problem seen to be when the sensor is in RGB mode

Tue Jan 08, 2013 5:18 am

flymic88

Rookie

Joined: Wed Oct 31, 2012 8:20 amPosts: 2

Re: bug with RGB (v3.51)

ThxWell my competition passed, I was able to put on 2 sensors with the version 3.08 of robotC with good driver.I understood why this bug, but I have pus to make without.Thank you all the same

Fri Jan 25, 2013 6:09 am

tfriez

Site Admin

Joined: Wed Jan 24, 2007 10:42 amPosts: 620

Re: bug with RGB (v3.51)

This issue is related to the addition of pointers/recursion to the firmware. Looks like every build from 3.50 moving forward has had this issue, but you're the first one to report it.

We're working on a fix at the moment in firmware and will have a new BETA release soon that will have the fix. I'll send you an e-mail or a PM when this occurs.

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum