Eurobot_shared pubulished from Eurobot Primary

Committer:
narshu
Date:
Tue Aug 07 10:25:53 2012 +0000
Revision:
0:434fd09723be
[mbed] converted /Eurobot_2012_Primary/Eurobot_shared

Who changed what in which revision?

UserRevisionLine numberNew contents of line
narshu 0:434fd09723be 1 #include "motors.h"
narshu 0:434fd09723be 2 #include "ai.h"
narshu 0:434fd09723be 3 #include "Kalman.h"
narshu 0:434fd09723be 4
narshu 0:434fd09723be 5 #ifndef MOTION
narshu 0:434fd09723be 6 #define MOTION
narshu 0:434fd09723be 7 class Motion {
narshu 0:434fd09723be 8 public:
narshu 0:434fd09723be 9 Motion(Motors &motorsin, AI &aiin, Kalman &kalmanin);
narshu 0:434fd09723be 10 Thread thr_motion;
narshu 0:434fd09723be 11
narshu 0:434fd09723be 12 private:
narshu 0:434fd09723be 13 Motors& motors;
narshu 0:434fd09723be 14 AI& ai;
narshu 0:434fd09723be 15 Kalman& kalman;
narshu 0:434fd09723be 16
narshu 0:434fd09723be 17 void motion_thread();
narshu 0:434fd09723be 18 static void mtwrapper(void const *arg){ ((Motion*)arg)->motion_thread(); }
narshu 0:434fd09723be 19
narshu 0:434fd09723be 20 };
narshu 0:434fd09723be 21 #endif