Eurobot2012_Primary
Dependencies: mbed Eurobot_2012_Primary
Eurobot_shared/Motion/motion.h@26:0995f61cb7b8, 2012-10-17 (annotated)
- Committer:
- narshu
- Date:
- Wed Oct 17 22:22:47 2012 +0000
- Revision:
- 26:0995f61cb7b8
Eurobot 2012 Primary;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
narshu | 26:0995f61cb7b8 | 1 | #include "motors.h" |
narshu | 26:0995f61cb7b8 | 2 | #include "ai.h" |
narshu | 26:0995f61cb7b8 | 3 | #include "Kalman.h" |
narshu | 26:0995f61cb7b8 | 4 | |
narshu | 26:0995f61cb7b8 | 5 | #ifndef MOTION |
narshu | 26:0995f61cb7b8 | 6 | #define MOTION |
narshu | 26:0995f61cb7b8 | 7 | class Motion { |
narshu | 26:0995f61cb7b8 | 8 | public: |
narshu | 26:0995f61cb7b8 | 9 | Motion(Motors &motorsin, AI &aiin, Kalman &kalmanin); |
narshu | 26:0995f61cb7b8 | 10 | Thread thr_motion; |
narshu | 26:0995f61cb7b8 | 11 | |
narshu | 26:0995f61cb7b8 | 12 | private: |
narshu | 26:0995f61cb7b8 | 13 | Motors& motors; |
narshu | 26:0995f61cb7b8 | 14 | AI& ai; |
narshu | 26:0995f61cb7b8 | 15 | Kalman& kalman; |
narshu | 26:0995f61cb7b8 | 16 | |
narshu | 26:0995f61cb7b8 | 17 | void motion_thread(); |
narshu | 26:0995f61cb7b8 | 18 | static void mtwrapper(void const *arg){ ((Motion*)arg)->motion_thread(); } |
narshu | 26:0995f61cb7b8 | 19 | |
narshu | 26:0995f61cb7b8 | 20 | }; |
narshu | 26:0995f61cb7b8 | 21 | #endif |