View Single Post
  #11   Spotlight this post!  
Unread 20-01-2012, 02:04
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,169
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: RTP or kernel module?

Quote:
Originally Posted by Ether View Post
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
Reply With Quote