View unanswered posts | View active topics It is currently Wed Oct 21, 2020 12:49 am

Reply to topic  [ 2 posts ] 
3rd party drivers and multitasking. 
Author Message

Joined: Mon Jun 06, 2011 5:13 am
Posts: 8
Post 3rd party drivers and multitasking.

In my robot i’ve plenty of sensors with mux and i want to pool them as fast as possible because some of these sensors are used for motor control (Gyro, IRDist …). I have in my idea to have on task per port in order to parallelize sensors communication. But I don’t know if 3rd party drivers is compatible with multitasking (problem with use of common buffer for exemple). For example, can I use the function MSDISTreadDist() in two different task?

Tue Mar 04, 2014 4:39 am
Site Admin
Site Admin
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3654
Location: Rotterdam, The Netherlands
Post Re: 3rd party drivers and multitasking.
No, you cannot. You're better off making a single task that is in charge of polling the sensors and making those values available as global variables to the other tasks.

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

Tue Mar 04, 2014 4:46 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 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.