View unanswered posts | View active topics It is currently Sat Aug 30, 2014 4:34 pm






Reply to topic  [ 6 posts ] 
How to use multiple drivers 
Author Message
Rookie

Joined: Wed Jan 01, 2014 1:14 pm
Posts: 3
Post How to use multiple drivers
Is it possible for me to include multiple driver files in one program? I am trying to use the HiTechnic receiver and link sensors in one program, but when I compile it generates a slew of errors started by
*Info***:Include file 'C:\...\drivers\common.h' has already been opened.
I need to include two driver files on two separate lines of code, and my guess is that this is the wrong way to go about it because including one or the other file does not result in errors.
I am wondering if there is some use of the #include line that allows you to include multiple drivers or if there is some other way to use two third-party sensors.
Thanks in advance for the help!


Wed Jan 01, 2014 1:28 pm
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3203
Location: Rotterdam, The Netherlands
Post Re: How to use multiple drivers
Can you provide an example of a program with multiple drivers that won't compile?

Also, please provide the version of ROBOTC you're using and which version of the driver suite.

= 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]


Wed Jan 01, 2014 2:19 pm
Profile WWW
Rookie

Joined: Wed Jan 01, 2014 1:14 pm
Posts: 3
Post Re: How to use multiple drivers
ROBOTC 3.62

I don't know how to check for the driver suite version, but I installed ROBOTC less than two weeks ago


Attachments:
tank1312311.c [730 Bytes]
Downloaded 121 times
Wed Jan 01, 2014 2:25 pm
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3203
Location: Rotterdam, The Netherlands
Post Re: How to use multiple drivers
I have spotted the issue, it's a conflict between MOTOR_BRAKE from the one driver and MOTOR_BRAKE from the other. That shouldn't have happened. It's been fixed and you can download the latest version of the driver suite fro the Github repo. For info on how to do that, check out the page here: http://botbench.com/blog/2013/12/13/rob ... ow-on-git/
For info on how to install the drivers after that, go to: http://botbench.com/blog/robotc-driver- ... ver-suite/, proceed directly to step 1, since you'll already have the zip file.

You can find the changelog here: https://github.com/botbench/rdpartyrobo ... f5c6f24ceb :)

= 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]


Wed Jan 01, 2014 2:50 pm
Profile WWW
Rookie

Joined: Wed Jan 01, 2014 1:14 pm
Posts: 3
Post Re: How to use multiple drivers
Ok. Thanks for the help!


Wed Jan 01, 2014 2:58 pm
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3203
Location: Rotterdam, The Netherlands
Post Re: How to use multiple drivers
Thank you for spotting it :) You're famous now, I put your name in the Changelog.

= 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]


Wed Jan 01, 2014 3:04 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: KeesSmit 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.