|
Re: Command Based Programming (Threads?)
Our thought was to have an image processing Command, that would have taken a bit more time and processing power, that ran in a parallel Command Group, but since it isn't really parallel, then the main thread would be stuck in the Image Processing command until it returned.
This non-threaded functionality could affect our driving (Essentially Everything) because if the thread is working on image processing then it is not available to change speed on our motors. (This is just a simple example.)
Im coaching the team and talking about parallel processing and trying to show an example based on the API that is given. The more I work with it, the more I find it isn't really there.
It's alright that it is not in there, but the documentation says:
"... instead of waiting for the child to finish, a CommandGroup will have it run at the same time as the subsequent Commands. ..."
|