|
Re: Threading on the CRIO
Are you using labview or C++? As I understand, the "dataflow execution" model in labview means that to do multithreading you just make two dataflow things and don't connect them. In c++, it's a bit more complicated, but I think the "programming user's guide" has some stuff on how to do it.
For what you're talking about, however, you don't even really need to use all the fancy multithreading features. Instead, you can just set up a loop in your program like:
1.Get data from DS
2.Make whatever calculations you need for traction control, etc
3.Set your speed controllers
4.Get and analyze data from the camera
5.Set your panning servos
6.Repeat
__________________
Get yer robot source code here!
|