View unanswered posts | View active topics It is currently Thu Aug 21, 2014 12:05 pm






This topic is locked, you cannot edit posts or make further replies.  [ 11 posts ] 
Released: RobotC Driver Suite RC3 
Author Message
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3188
Location: Rotterdam, The Netherlands
Post Released: RobotC Driver Suite RC3
Hiya all,

A new version of the RobotC Driver Suite has been released. Two new drivers were added and some improvements were made in the I2C bus error handling.

Changelog:
  • NEW: Added driver for AT24C512 EEPROM chip.
  • NEW: Added Light Sensor driver with calibration! You can use one of the test programs to calibrate for both white and black. Calibration data is saved to a file which is read when the driver is first used. You can also use the API to write your own calibration program.
    I2C bus error handling code added to common.h. When an error occurs, the bus is now flooded with 5 dummy I2C packets. This usually clears it up. The original packet is then retransmitted. Note that this is done only once for each packet.
  • HTPB driver has error checking removed, this is now handled by common.h
  • The drivers will generate an error when compiled with a RobotC less than 1.46.

TODO:
  • Add Line Leader driver, waiting for firmware API to stabilise
  • Add UART (RCX) functionality to HiTechnic IR Link driver.

The drivers’ website is here: [LINK]. The documentation can be found here: [LINK]. You can download the software from the Source Forge page here: [LINK].

Regards,
Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Sun May 31, 2009 10:40 am
Profile WWW
Rookie
User avatar

Joined: Thu Jul 30, 2009 6:37 am
Posts: 13
Location: Brisbane, Australia
Post Re: Released: ROBOTC Driver Suite RC3
Xander,
Can your light sensor calibration driver calibrate 2 sensors? And does anything need to be done with the program reading from the sensors? I would have posted this under RC6, but RC3 was when the LS driver was released

_________________
If you want my name, look at my name!
THE CAKE IS A LIE


Mon Aug 17, 2009 4:53 am
Profile WWW
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3188
Location: Rotterdam, The Netherlands
Post Re: Released: ROBOTC Driver Suite RC3
Tom,

No, it only stores calibration data for one sensor. This data is then used for all light sensors that are currently connected. The problem with using multiple sensors and separate calibration data is that you have to make really sure that the sensors are always connected to same sensor ports because the brick has no way of differentiating between them. This is also how NXT-G works.

Regards,
Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Mon Aug 17, 2009 5:00 am
Profile WWW
Rookie
User avatar

Joined: Thu Jul 30, 2009 6:37 am
Posts: 13
Location: Brisbane, Australia
Post Re: Released: ROBOTC Driver Suite RC3
Xander,
For me I try and keep the sensors in the same port, and they pick up different values. I am using your calibration driver to keep the values the same, and it is an advantage that I don't have to change my threshold, just recalibrate with your driver. With the two sensors in the same ports constantly, would I be able to use 2 sensors?

_________________
If you want my name, look at my name!
THE CAKE IS A LIE


Mon Aug 17, 2009 5:18 am
Profile WWW
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3188
Location: Rotterdam, The Netherlands
Post Re: Released: ROBOTC Driver Suite RC3
sure, but it would use the same calibration data for both sensors. If that is not a problem for you then it'll work fine :)

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Mon Aug 17, 2009 5:45 am
Profile WWW
Rookie
User avatar

Joined: Thu Jul 30, 2009 6:37 am
Posts: 13
Location: Brisbane, Australia
Post Re: Released: ROBOTC Driver Suite RC3
:idea: It wouldn't work, but I could calibrate one sensor to read the same value as the other, instead of a dfference :idea:
It would complete my primary objective, but I would have to recalculate the thresholds each time! My friend has also used every light sensor in the school trying to find a match, so I'll tell him! Unless... Does the calibration for oone sensor go for both?

_________________
If you want my name, look at my name!
THE CAKE IS A LIE


Mon Aug 17, 2009 5:52 am
Profile WWW
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3188
Location: Rotterdam, The Netherlands
Post Re: Released: ROBOTC Driver Suite RC3
The calibration data is applied to all light sensors, but only for the normalised values, ie, from 0-100%.

Regards,
Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Mon Aug 17, 2009 6:06 am
Profile WWW
Rookie
User avatar

Joined: Thu Jul 30, 2009 6:37 am
Posts: 13
Location: Brisbane, Australia
Post Re: Released: ROBOTC Driver Suite RC3
Is it possible to set it so that the calibration only goes for one sensor?

_________________
If you want my name, look at my name!
THE CAKE IS A LIE


Mon Aug 17, 2009 6:09 am
Profile WWW
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3188
Location: Rotterdam, The Netherlands
Post Re: Released: ROBOTC Driver Suite RC3
only if you hack the driver :)

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Mon Aug 17, 2009 6:24 am
Profile WWW
Rookie
User avatar

Joined: Thu Jul 30, 2009 6:37 am
Posts: 13
Location: Brisbane, Australia
Post Re: Released: ROBOTC Driver Suite RC3
Do you still use SensorValue() with the driver, I can't work it out? If not, no hacking is nescesary!

_________________
If you want my name, look at my name!
THE CAKE IS A LIE


Mon Aug 17, 2009 6:41 am
Profile WWW
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3188
Location: Rotterdam, The Netherlands
Post Re: Released: ROBOTC Driver Suite RC3
No, you don't use SensorValue, you need to have a look at the example program for this driver. It will make things a lot clearer :) I wrote extensive documentation for this driver, please take the time to have a look at it.

Regards,
Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Mon Aug 17, 2009 7:01 am
Profile WWW
Display posts from previous:  Sort by  
This topic is locked, you cannot edit posts or make further replies.   [ 11 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


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

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.