Nurbol Nurdaulet / cmd_io

Dependents:   state_machine_modes_1_12_11_11h

Revision:
4:c099ce00dd9a
Parent:
3:9f108fca5c3b
Child:
5:9aa646406402
--- a/cmd_io.h	Fri Nov 25 17:22:14 2011 +0000
+++ b/cmd_io.h	Tue Nov 29 00:24:01 2011 +0000
@@ -12,7 +12,7 @@
 #define     CMD_STR_BUFFER_SZ       100
 #define     MAX_SERVO_NUMBER          5
 #define     MIN_SERVO_ANGLE           0
-#define     MAX_SERVO_ANGLE          90
+#define     MAX_SERVO_ANGLE         180
 //
 // Use 'enum' construct to create list of return codes.
 // Each entry will be defined as 1 more than the previous entry
@@ -37,6 +37,7 @@
 
 #define MAINT_MODE         'z'   //add define to receive mode value
 #define SORT_MODE          'y'   //add define to receive mode value
+#define URGENCY            'u'  //add define to receive the urgency mode
 
 //
 // Misc defines
@@ -53,7 +54,7 @@
     uint32_t    cmd_code;            // extracted command code
     uint32_t    param[4];            // command parameters
     uint32_t    nos_params;          // number of parameters
-    uint32_t    result_data[3];      // data resulting from command execution
+    uint32_t    result_data[7];      // data resulting from command execution
     uint32_t    nos_data;            // number of data items
     uint32_t    result_status;       // status
 } CMD_STRUCT;