]> rtime.felk.cvut.cz Git - eurobot/public.git/commitdiff
cand: Send only start condition, there is no "stop"
authorMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 28 Apr 2010 23:06:53 +0000 (01:06 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 28 Apr 2010 23:06:53 +0000 (01:06 +0200)
src/cand/cand.cc
src/types/robottype.idl

index fb76a16b2f36d61d1ee8c9e7c686df7a797bb443..e0b34d343f1d76d9d48733ae4225a466fd252e05 100644 (file)
@@ -161,8 +161,7 @@ void cand_parse_frame(struct robottype_orte_data *orte, struct can_frame frame)
                
                /* robot commands (start, ..) */
                case CAN_ROBOT_CMD:
-                       orte->robot_cmd.start = frame.data[0];
-                       orte->robot_cmd.stop = frame.data[1];
+                       orte->robot_cmd.start_condition = frame.data[0];
                        ORTEPublicationSend(orte->publication_robot_cmd);
                        break;
 
index 3b772e6f4265eacb393c6ac4a5496cf9c56ab455..fb42ebcde3f737bdfb442e558f390380512eba90 100644 (file)
@@ -59,8 +59,7 @@ struct pwr_alert {
 };
 
 struct robot_cmd {
-       boolean start;
-       boolean stop;
+       boolean start_condition;
 };
 
 struct can_msg {