]> rtime.felk.cvut.cz Git - eurobot/public.git/commitdiff
ULoPoS EKF debug msgs
authorMarek Peca <mp@duch.cz>
Sun, 5 Apr 2009 17:41:24 +0000 (19:41 +0200)
committerMarek Peca <mp@duch.cz>
Sun, 5 Apr 2009 17:41:24 +0000 (19:41 +0200)
src/uzv/ekf/ekf.h

index fce3e76a8e836b70ce859615d4a59671e21f6485..f18dd2497b7587432b3924200d14528f738f587f 100644 (file)
@@ -15,6 +15,13 @@ static inline real_t sqr(real_t x) {
 }
 #endif
 
+#ifdef EKF_DEBUG
+#include <stdio.h>
+#define DBG(fmt,...) fprintf(stderr, fmt, ##__VA_ARGS__)
+#else
+#define DBG(fmt,...)
+#endif
+
 typedef struct ekf_state_t {
   int n, m;
   real_t *x, *ym, *dy, *exc;