Quote:
Originally Posted by AustinSchuh
Correct me if I'm wrong, but I believe that updating the speeds of the motors on the robot 50 times a second while processing images using the rest of the CPU time would qualify. When I've tried to get code I've written under Linux to execute a loop 50 times a second without the timing being off by a fairly large percentage while using all of the available CPU resources, I've had trouble and found the best way to get the loop to execute every 20 ms is to use less CPU resources. Maybe I was doing it wrong, but that's been my experience.
|
You're right, obviously linux and vxWorks have different design goals. Probably would be a bit better if you were running in the kernel like we do on the cRio or if it were a realtime patched kernel, but hard to say -- I've no experience with realtime Linux.
In any case, I value the flexibility quite a bit more than I value the realtimeness. Cmon, a robot controlled by a shell script... would be pretty amusing.