Quote:
Originally Posted by Ether
Does the FRC C++ framework leave it in the default (disabled) mode?
If so, how do most C++ teams deal with this? Turn the time-slicing on, or assign different priorities to their threads, or some combination, or not use threads?
|
Good question - I'll take a look. We turn RR on by default but on the other hand do not run many tasks at the same priority. We separate things out into multiple tasks and use the native messaging libraries (msgQLib.h) to get things done. For example we form a message (and send it from our 'ds' task) that tells the 'wheels' task the desired velocity.
Note that even if we did not create a multi-tasking solution, there are many tasks already running on the robot, some created by the OS and many more created by the NI infrastructure. Type 'i' at a shell to see them.
HTH