Joined: Wed Jan 31, 2007 3:39 am Posts: 298 Location: San Diego, California. USA
Ahh ok, the problem is you cannot have a task within a task, Tasks are processes that run independently from one another and are defined separately. Void statements also work the same way, they are defined outside of a task.
I moved the brackets and it should work for you now. Here ya go, hope this helps B-)
Scott
Code:
bool bump = false;
task fwd100(); task rev75();
task main() { do { StartTask(fwd100); } while (SensorValue[S3] == 0); { bump=true; do { StartTask(rev75); } while (bump ==true); { } } }
Users browsing this forum: No registered users and 6 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum