Released: ROBOTC Driver Suite V1.2
A new version (1.2) of the ROBOTC driver suite awaits your download from the usual [url="http://rdpartyrobotcdr.sourceforge.net/"]source[/url].
Lots of internal changes in this version. I’ve been working on removing all the work-arounds that were necessary for ROBOTC pre-2.0 when there was no unsigned byte type. Only ROBOTC 2.00 or higher is supported by this version. The upgrade is free, so there is no reason not to download and install this.
A lot of work has gone into improving the documentation in the code.Changes for this version include:All:
- Changed minimal requirement from 1.46 to 2.00
- Added more comments
New test/samples programs:
- set #pragma systemFile to remove warnings of unused functions
- Use new calls in common.h that don't require SPORT/MPORT macros
- HTDIR-SMUX-test1.c: Newly added for HT IR Seeker V2 through SMUX
- HTEOPD-SMUX-test1.c: Newly added for HT EOPD through SMUX
- HTGYRO-SMUX-test1.c: Newly added for HT Gyro through sMUX
- HTMC-SMUX-test1.c: Newly added for HT Compass through SMUX
- LEGOTS-SMUX-test1.c: Newly added for Lego Touch sensor through SMUX
- LEGOTS-test1.c: Newly added for Lego Touch sensor
- drivers/LEGOTS-driver.h: Newly added driver for Lego Touch sensor
- Fixed massive bug in HTACreadAllAxes() in the way values are calculated
- added bool HTSMUXsetMode(tSensors link, byte channel, byte mode)
- added int HTSMUXreadAnalogue(tMUXSensor muxsensor)
- added HTSMUXSensorType HTSMUXreadSensorType(tMUXSensor muxsensor)
- added bool HTSMUXreadPort(tMUXSensor muxsensor, tByteArray &result, int numbytes, int offset)
- added bool HTSMUXreadPort(tMUXSensor muxsensor, tByteArray &result, int numbytes)
- added bool HTSMUXsetMode(tMUXSensor muxsensor, byte mode)
- added bool HTSMUXsetAnalogueActive(tMUXSensor muxsensor)
- added bool HTSMUXsetAnalogueInactive(tMUXSensor muxsensor)
- corrected function description for HTSMUXSensorType()
- Removed unnecessary read from HTSMUXsendCommand()
- Removed usage of ubyteToInt();
- Changed HTIRRreadChannel() proto to use signed bytes like function.
- Replaced hex values in calibration functions with #define's
- Make use of new calls for analogue SMUX sensors in common.h
- Added defines for ranges (MSAC_RANGE_2_5 ... MSAC_RANGE_10)
- Removed ubyteToInt() calls.
- Fixed line number in display functionality
- Use clip() instead of manual clipping
The drivers’ website is here: [[url="http://rdpartyrobotcdr.sourceforge.net/"]LINK[/url]].
The documentation can be found here: [[url="http://rdpartyrobotcdr.sourceforge.net/documentation/index.html"]LINK[/url]].
You can download the software from the Source Forge page here: [[url="https://sourceforge.net/projects/rdpartyrobotcdr/"]LINK[/url]].
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page