From ee8a58dbce290d4615035061b3f2cab851eccfa7 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Thu, 29 Apr 2010 01:06:53 +0200 Subject: [PATCH] cand: Send only start condition, there is no "stop" --- src/cand/cand.cc | 3 +-- src/types/robottype.idl | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/cand/cand.cc b/src/cand/cand.cc index fb76a16b..e0b34d34 100644 --- a/src/cand/cand.cc +++ b/src/cand/cand.cc @@ -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; diff --git a/src/types/robottype.idl b/src/types/robottype.idl index 3b772e6f..fb42ebcd 100644 --- a/src/types/robottype.idl +++ b/src/types/robottype.idl @@ -59,8 +59,7 @@ struct pwr_alert { }; struct robot_cmd { - boolean start; - boolean stop; + boolean start_condition; }; struct can_msg { -- 2.39.2