1 #ifndef _FG_UGEAR_COMMAND_HXX
2 #define _FG_UGEAR_COMMAND_HXX
9 #include <simgear/compiler.h>
15 #include <simgear/misc/stdint.hxx>
16 #include <simgear/io/iochannel.hxx>
17 #include <simgear/serial/serial.hxx>
25 // Manage UGear Command Channel
33 queue <string> cmd_queue;
40 // send current command until acknowledged
41 int update( SGSerialPort *serial );
43 void add( const string command );
44 inline int cmd_queue_size() {
45 return cmd_queue.size();
47 inline void update_cmd_sequence( int sequence ) {
48 cmd_recv_index = sequence;
53 extern UGCommand command_mgr;
56 #endif // _FG_UGEAR_COMMAND_HXX