task main() { // Telemetry init InitializeMain(); DoTelemetry(); // As the main task is exiting, so should all others; this will // allow the program to gracefully and fully terminate (without this // call, the readMsgFromPC() task, e.g., in joystickDriver.h will // keep the program alive). StopAllTasks(); }
task main() { if (InitializeMain(true, true)) { StartReadingTouchSensor(touchForklift); SpeculativelyUpdateBlackboard(); // for (;;) { if (touchForklift.fValue) { StopRobot(); break; } // SendOneMotorPower(motorForklift, -2); // down *slow* // EndTimeSlice(); } } }