
Figure 15. Program Interaction and SOCKETS
B. CONTROL PROGRAM
The control program (Alltask.c) for the SMART robot is written in Dynamic C
and controls all tasks of the robot in a cooperative multitasking environment (figure 18).
The program has five costates that perform the basic functions of the robot: manual motor
control, GPS and compass update, navigation, stop navigation and web page server.
These costates interact with the JAVA control application and with other functions within
the Alltask.c program to govern operation of the robot.
Desired
Heading or
GPS
Costate
Control
Sliders &
Buttons
Motor
Control
Costate
GPS
Update
Costate
GPSsock 2002
Navigation
Routine
Navigation
Costate
Server
Costate
Comentarios a estos manuales