From 56a9ba04a14611a400804a7b55d2c5f1d71439e5 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Fri, 24 Apr 2009 15:02:11 +0200 Subject: [PATCH] camera display --- src/robofsm/robot.c | 2 ++ src/robofsm/robot.h | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/robofsm/robot.c b/src/robofsm/robot.c index 2419d2af..cc1c9b66 100644 --- a/src/robofsm/robot.c +++ b/src/robofsm/robot.c @@ -174,6 +174,8 @@ int robot_init() robot.orte.pwr_ctrl.voltage50 = 1; robot.orte.pwr_ctrl.voltage80 = 1; + robot.orte.camera_control.on = true; + robot.fsm.motion.state = &fsm_state_motion_init; robot.fsm.act.state = &fsm_state_act_wait_for_command; // puck handling actuators FSM's initial state diff --git a/src/robofsm/robot.h b/src/robofsm/robot.h index 0cefd7b4..8930ae16 100644 --- a/src/robofsm/robot.h +++ b/src/robofsm/robot.h @@ -127,7 +127,8 @@ struct robot { pthread_mutex_t lock_camera; /* competition parameters */ - enum team_color team_color; +#define team_color orte.camera_control.game_color +// enum team_color team_color; /** State variable used for controlling the robot by pluggin * in and out start connector. */ -- 2.39.2