]> rtime.felk.cvut.cz Git - eurobot/public.git/commitdiff
robofsm: remove debug functions
authorPetr Silhavik <silhavik.p@gmail.com>
Wed, 20 Feb 2013 18:49:23 +0000 (19:49 +0100)
committerPetr Silhavik <silhavik.p@gmail.com>
Wed, 20 Feb 2013 18:49:23 +0000 (19:49 +0100)
src/robofsm/scheduler.hpp
src/robofsm/timedFSM.h

index 3e1c47ba2fcbbacbcd6f8c4a1b2911482aceb91e..e16d44e3f27d808231da892bd7ee044b4b31cc47 100644 (file)
@@ -112,7 +112,6 @@ public:
                                        if(processor_queue_list[i]->event_queue_.size()>0) {
                                                actual_processor = processor_queue_list[i];
                                                processor_queue_list[i]->processor_->process_event(*(processor_queue_list[i]->event_queue_.front()));
-                                               printf("stav: %s\n",actual_processor->state_name);
                                                Guard g(queue_lock);
                                                processor_queue_list[i]->event_queue_.pop_front();
                                        }
index c197d8adf59b9ecf7f522149232445553decf891..7620d6cb6b34feda2aebb6ccce47c058e78da6a9 100644 (file)
@@ -30,9 +30,9 @@ struct TimedState : boost::statechart::state<MostDerived, Context, Inner>
     public:
        TimedState(typename base_type::my_context ctx ) : base_type( ctx ) {
                handle_ = base_type::outermost_context().my_handle();
-               /*#ifndef __LOCAL 
+               #ifndef __LOCAL 
                robot.set_state_name(abi::__cxa_demangle(typeid(MostDerived).name(),0,0,&status));
-               #endif*/
+               #endif
        }
        ~TimedState() {
                if(handle_->timer_list_.timeouts.size()>0 && active_timers.size()>0)
@@ -67,9 +67,9 @@ struct TimedSimpleState : boost::statechart::simple_state<MostDerived, Context,
        typedef TimedSimpleState base_state;
     public:
        TimedSimpleState() : handle_owned(false) {
-               /*#ifndef __LOCAL 
+               #ifndef __LOCAL 
                robot.set_state_name(abi::__cxa_demangle(typeid(MostDerived).name(),0,0,&status));
-               #endif*/
+               #endif
        }
        ~TimedSimpleState() {
                if(handle_owned)