#include <mos.h>
Inheritance diagram for MOS:

Public Member Functions | |
| MOS (void) | |
| int | query (int *const variable, char *message, WSIM_ID ID) |
| Generic query (both prompts for value and stores away) for associated storage ID (note must be valid STORAGE ID). | |
| void | query_waypoints () |
| gets waypoints to travel. | |
| void | inform (const char *const imessage) |
Static Public Member Functions | |
| void | run (void) |
| start the MOS event loop. | |
| void | beep (MIDI_PITCH mp=F5) |
| single beep on speaker. | |
| void | beep (int, MIDI_PITCH mp=F5) |
| beep a number of times. | |
| bool | add (foo, int slot) |
| Adds a callback function. Returns true for sucess. | |
| bool | drop (foo) |
| Removes callback from table. | |
| void | communicator_check (void) |
| Checks for incoming message and handles if there is. | |
Data Fields | |
| oDialogue | MOS_gui |
Protected Attributes | |
| void * | _speaker |
| OBJECT | _SpeakerType |
Static Protected Attributes | |
| foo | MOS_FooArray [] |
A mechanism for providing a command based operating system like DOS.
#include <oconsole.h> #include <m4.h> #include <persistent.h> #include <mos.h> #include "user_functions.h" M4 m4(4,5,0,PORT_E,0,2,3,0,PORT_F,1,101,38000,1,1,0); Persistent_Interface pi; oGreenLED green; oRedLED red; oConsole console; pose_list _waypoints; short _wplist[9]; int MAIN() { Persistent_Interface::load_configuration(_waypoints,_wplist); m4.setup(); // register routines with OS manager. MOS::add(mos_configuration,1); MOS::add(mos_ASaJ_Contest,2); MOS::add(mos_demo,3); MOS::add(mos_linefollower,4); MOS::add(mos_exposure,5); // main OS entrypoint. MOS::run(); }
|
|
|
|
||||||||||||
|
Adds a callback function. Returns true for sucess.
|
|
||||||||||||
|
beep a number of times.
|
|
|
single beep on speaker.
|
|
|
Checks for incoming message and handles if there is.
|
|
|
Removes callback from table.
|
|
|
|
|
||||||||||||||||
|
Generic query (both prompts for value and stores away) for associated storage ID (note must be valid STORAGE ID).
|
|
|
gets waypoints to travel.
|
|
|
start the MOS event loop.
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3