NXC Rotate Motor functions

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
Post Reply
tweezy0126
Posts: 2
Joined: 23 Apr 2014, 16:44

NXC Rotate Motor functions

Post by tweezy0126 »

Hi. I'm using subsumption architecture for a project. Subsumption architecture is when you use tasks which all run parallel to each other, and then depending on what is active certain things are ran (Briefest of explanations). Anyway, i'm looking though the RotateMotor functions and i've hit a little snag. From reading the documentation it seems to be that they are thread safe, meaning my use of mutexs seem to be void (Any other tasks can only be run once the rotate functions have finished) which kind of removes the whole point in what I'm working on.

Does anyone have any knowledge on how to get these functions to run parallel on different tasks? Will this even be possible, or will I have to design my own functions?

Thanks
tweezy0126
Posts: 2
Joined: 23 Apr 2014, 16:44

Re: NXC Rotate Motor functions

Post by tweezy0126 »

Fixed it. I just decided to remove my mutexs as there weren't any need as the functions are thread safe anyway.
Post Reply

Who is online

Users browsing this forum: No registered users and 20 guests