|3rd party drivers and multitasking.
|Page 1 of 1|
|Author:||amare [ Tue Mar 04, 2014 4:39 am ]|
|Post subject:||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?
|Author:||mightor [ Tue Mar 04, 2014 4:46 am ]|
|Post subject:||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.
|Page 1 of 1||All times are UTC - 5 hours [ DST ]|
|Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group