Eurobot2012_Primary
Dependencies: mbed Eurobot_2012_Primary
Eurobot_shared/Motion/motion.h@17:bafcef1c3579, 2012-04-29 (annotated)
- Committer:
- narshu
- Date:
- Sun Apr 29 00:09:35 2012 +0000
- Revision:
- 17:bafcef1c3579
uptodate kalman lib; edit this one only!
Who changed what in which revision?
User | Revision | Line number | New 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 | }; |