Eurobot2012_Primary

Dependencies:   mbed Eurobot_2012_Primary

Committer:
narshu
Date:
Fri May 04 05:23:45 2012 +0000
Revision:
24:7a3906c2f5d5
Parent:
17:bafcef1c3579
1st working version with accurate target acquisition.

Who changed what in which revision?

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