by XTinX » Mon Apr 06, 2009 3:06 pm
by XTinX
Mon Apr 06, 2009 3:06 pm
Here's some details concerning my project :
the goal is to drive a bioloid car (via wireless connection) while computing the position (coordinates & angle) of the robot. The position is computed with speed data accumulated over time. In order to have a very precise position, the time elapsed between 2 speed measures has to be constant and very small (50-100 ms).
I programmed this application on lego nxt using NXTosek OS (based on rate monotonic task scheduling). So i had 2 tasks :
- a "recieve task" listening for servo commands and sending them to actuators
- a "speed acquisition task" measuring the instant speeds of wheels and computing position.
How can I perform the same application on a cm5 board ? I guess I should set an interruption every 50 or 100 ms to execute speed acquisition handler while the other task is executed in the main program. Am I right ? I don't have any robotis hardware yet but I would like to design the software architecture or at least, understand how my program should run.
Anybody help
EDIT: by the way, if anyone had a c file with interrupt exemples (declaration etc ...) please let me know !
Here's some details concerning my project :
the goal is to drive a bioloid car (via wireless connection) while computing the position (coordinates & angle) of the robot. The position is computed with speed data accumulated over time. In order to have a very precise position, the time elapsed between 2 speed measures has to be constant and very small (50-100 ms).
I programmed this application on lego nxt using NXTosek OS (based on rate monotonic task scheduling). So i had 2 tasks :
- a "recieve task" listening for servo commands and sending them to actuators
- a "speed acquisition task" measuring the instant speeds of wheels and computing position.
How can I perform the same application on a cm5 board ? I guess I should set an interruption every 50 or 100 ms to execute speed acquisition handler while the other task is executed in the main program. Am I right ? I don't have any robotis hardware yet but I would like to design the software architecture or at least, understand how my program should run.
Anybody help
EDIT: by the way, if anyone had a c file with interrupt exemples (declaration etc ...) please let me know !