Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1376 → Rev 1378

/demos/trunk/astro/astro.c
24,7 → 24,7
 
rock_ini rock_new;
 
extern volatile int shark_running;
extern PID shutdown_task_PID;
 
TASK shot(int i)
{
374,7 → 374,7
pid = task_create("Astro", astro, &ms, NULL);
if (pid == NIL) {
sys_shutdown_message("Could not create task <astro>\n");
shark_running = 0;
task_activate(shutdown_task_PID);
return;
} else
task_activate(pid);
387,7 → 387,7
pid = task_create("Taken", look, &mp, NULL);
if (pid == NIL) {
sys_shutdown_message("Could not create task <Taken>\n");
shark_running = 0;
task_activate(shutdown_task_PID);
return;
} else
task_activate(pid);
403,7 → 403,7
pid_TL = task_create("TurnLeft", turn, &mp, NULL);
if (pid_TL == NIL) {
sys_shutdown_message("Could not create task <Turn L>\n");
shark_running = 0;
task_activate(shutdown_task_PID);
return;
}
 
418,7 → 418,7
pid_TR = task_create("TurnRight", turn, &mp, NULL);
if (pid_TR == NIL) {
sys_shutdown_message("Could not create task <Turn R>\n");
shark_running = 0;
task_activate(shutdown_task_PID);
return;
}
 
433,7 → 433,7
pid_SU = task_create("SpeedUP", speed, &mp, NULL);
if (pid_SU == NIL) {
sys_shutdown_message("Could not create task <Speed UP>\n");
shark_running = 0;
task_activate(shutdown_task_PID);
return;
}
 
448,7 → 448,7
pid_SD = task_create("SpeedDOWN", speed, &mp, NULL);
if (pid_SD == NIL) {
sys_shutdown_message("Could not create task <Speed DOWN>\n");
shark_running = 0;
task_activate(shutdown_task_PID);
return;
}
 
463,7 → 463,7
pid_SZ = task_create("SpeedZERO", speed, &mp, NULL);
if (pid_SZ == NIL) {
sys_shutdown_message("Could not create task <Speed ZERO>\n");
shark_running = 0;
task_activate(shutdown_task_PID);
return;
}
 
475,7 → 475,7
pid = task_create("MoveAstro", move, &mp, NULL);
if (pid == NIL) {
sys_shutdown_message("Could not create task <MoveAstro>\n");
shark_running = 0;
task_activate(shutdown_task_PID);
return;
} else
task_activate(pid);
492,7 → 492,7
pid_FL = task_create("FlipAstro", turn, &mp, NULL);
if (pid_FL == NIL) {
sys_shutdown_message("Could not create task <Flip Astro>\n");
shark_running = 0;
task_activate(shutdown_task_PID);
return;
}
#endif