Eurobot2012_Primary

Dependencies:   mbed Eurobot_2012_Primary

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers motion.h Source File

motion.h

00001 #include "motors.h"
00002 #include "ai.h"
00003 #include "Kalman.h"
00004 
00005 #ifndef MOTION
00006 #define MOTION
00007 class Motion {
00008 public:
00009     Motion(Motors &motorsin, AI &aiin, Kalman &kalmanin);
00010     Thread thr_motion;
00011 
00012 private:
00013     Motors& motors;
00014     AI& ai;
00015     Kalman& kalman;
00016     
00017     void motion_thread();
00018     static void mtwrapper(void const *arg){ ((Motion*)arg)->motion_thread(); }
00019 
00020 };
00021 #endif