372,7 → 372,8 |
pid = task_create("Astro", astro, &ms, NULL); |
if (pid == NIL) { |
sys_shutdown_message("Could not create task <astro>\n"); |
exit(1); |
sys_end(); |
return; |
} else |
task_activate(pid); |
|
384,7 → 385,8 |
pid = task_create("Taken", look, &mp, NULL); |
if (pid == NIL) { |
sys_shutdown_message("Could not create task <Taken>\n"); |
exit(1); |
sys_end(); |
return; |
} else |
task_activate(pid); |
|
399,7 → 401,8 |
pid_TL = task_create("TurnLeft", turn, &mp, NULL); |
if (pid_TL == NIL) { |
sys_shutdown_message("Could not create task <Turn L>\n"); |
exit(1); |
sys_end(); |
return; |
} |
|
incr = - ASTRO_GRAD_INC; |
413,7 → 416,8 |
pid_TR = task_create("TurnRight", turn, &mp, NULL); |
if (pid_TR == NIL) { |
sys_shutdown_message("Could not create task <Turn R>\n"); |
exit(1); |
sys_end(); |
return; |
} |
|
incr = ASTRO_VEL_INC; |
427,7 → 431,8 |
pid_SU = task_create("SpeedUP", speed, &mp, NULL); |
if (pid_SU == NIL) { |
sys_shutdown_message("Could not create task <Speed UP>\n"); |
exit(1); |
sys_end(); |
return; |
} |
|
incr = - ASTRO_VEL_INC; |
441,7 → 446,8 |
pid_SD = task_create("SpeedDOWN", speed, &mp, NULL); |
if (pid_SD == NIL) { |
sys_shutdown_message("Could not create task <Speed DOWN>\n"); |
exit(1); |
sys_end(); |
return; |
} |
|
incr = 0; |
455,7 → 461,8 |
pid_SZ = task_create("SpeedZERO", speed, &mp, NULL); |
if (pid_SZ == NIL) { |
sys_shutdown_message("Could not create task <Speed ZERO>\n"); |
exit(1); |
sys_end(); |
return; |
} |
|
hard_task_default_model(mp); |
466,7 → 473,8 |
pid = task_create("MoveAstro", move, &mp, NULL); |
if (pid == NIL) { |
sys_shutdown_message("Could not create task <MoveAstro>\n"); |
exit(1); |
sys_end(); |
return; |
} else |
task_activate(pid); |
|
482,7 → 490,8 |
pid_FL = task_create("FlipAstro", turn, &mp, NULL); |
if (pid_FL == NIL) { |
sys_shutdown_message("Could not create task <Flip Astro>\n"); |
exit(1); |
sys_end(); |
return; |
} |
#endif |
} |