]> rtime.felk.cvut.cz Git - eurobot/public.git/commitdiff
rozkuk: If WAIT mode is default, when leaving the mode switch to RECOGNIZE mode.
authorPetr Kubiznak <kubizpet@fel.cvut.cz>
Thu, 21 Oct 2010 14:31:20 +0000 (16:31 +0200)
committerPetr Kubiznak <kubizpet@fel.cvut.cz>
Thu, 21 Oct 2010 14:31:20 +0000 (16:31 +0200)
Now the program should be ok also for ppc ;-)

src/camera/rozkuk/rozkuk.cxx
src/fsm/tests/Makefile.omk
src/fsm/tests/timed_signal/Makefile.omk

index 233af9310e4daed8b63d0f59cfa8db64344c6f2d..cf8e247850759267f92f1b58645a20e8e83d9a1e 100644 (file)
@@ -712,7 +712,7 @@ void destroyGUI(void) {}
   * @return Zero on success, error number on fail. */
 int modeManager(int defaultMode, char *paramC) {
        int mode=defaultMode;
-       int lastMode=0;
+       int lastMode=MODE_RECOGNIZE;
        int ret;
        CvCapture* capture = NULL;
 
index 75dd632c3143515785a28cfda25746e0eaff8699..feb281bf986285fc6ff22a43c23fb17f52e72873 100644 (file)
@@ -10,6 +10,6 @@ test_PROGRAMS += fsm_entry_exit
 fsm_entry_exit_SOURCES = fsm_entry_exit.c
 
 # Libraries linked to all programs in this Makefile
-lib_LOADLIBES = fsm rt
+lib_LOADLIBES = fsm rt pthread
 
 SUBDIRS=timed_signal
index d78d06ed386472fedd395b09abf4d2900148d51a..a2e914bcf564024929414339f507b917e8e69b76 100644 (file)
@@ -5,7 +5,7 @@ fsm_timed_signal_SOURCES = fsm_timed_signal.c
 fsm_timed_signal_GEN_SOURCES = ev.c
 
 # Libraries linked to all programs in this Makefile
-lib_LOADLIBES = fsm rt
+lib_LOADLIBES = fsm rt pthread
 
 # Automatic generation of event definition files
 include-pass_HOOKS = ev.c ev.h