Eurobot2012_Primary
Dependencies: mbed Eurobot_2012_Primary
motion.h@12:2981367c63a0, 2012-04-28 (annotated)
- Committer:
- narshu
- Date:
- Sat Apr 28 18:26:26 2012 +0000
- Revision:
- 12:2981367c63a0
- Parent:
- 10:294b9adbc9d3
Working after moving motion to own file
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
narshu | 10:294b9adbc9d3 | 1 | #include "motors.h" |
narshu | 10:294b9adbc9d3 | 2 | #include "ai.h" |
narshu | 10:294b9adbc9d3 | 3 | #include "Kalman.h" |
narshu | 10:294b9adbc9d3 | 4 | |
narshu | 10:294b9adbc9d3 | 5 | class Motion { |
narshu | 10:294b9adbc9d3 | 6 | public: |
narshu | 10:294b9adbc9d3 | 7 | Motion(Motors &motorsin, AI &aiin, Kalman &kalmanin); |
narshu | 12:2981367c63a0 | 8 | Thread thr_motion; |
narshu | 10:294b9adbc9d3 | 9 | |
narshu | 10:294b9adbc9d3 | 10 | private: |
narshu | 10:294b9adbc9d3 | 11 | Motors& motors; |
narshu | 10:294b9adbc9d3 | 12 | AI& ai; |
narshu | 10:294b9adbc9d3 | 13 | Kalman& kalman; |
narshu | 10:294b9adbc9d3 | 14 | |
narshu | 10:294b9adbc9d3 | 15 | void motion_thread(); |
narshu | 10:294b9adbc9d3 | 16 | static void mtwrapper(void const *arg){ ((Motion*)arg)->motion_thread(); } |
narshu | 10:294b9adbc9d3 | 17 | |
narshu | 10:294b9adbc9d3 | 18 | }; |