Eurobot2012_Primary
Dependencies: mbed Eurobot_2012_Primary
Diff: Eurobot_shared/ai/ai.h
- Revision:
- 16:b3dd4e0b3100
- Parent:
- 15:acae5c0e9ca8
- Child:
- 17:bafcef1c3579
--- a/Eurobot_shared/ai/ai.h Sat Apr 28 22:21:03 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,34 +0,0 @@ -#ifndef AI_H -#define AI_H - -#include "rtos.h" - -class AI { -public: -AI(); - -Mutex targetlock; -Thread thr_AI; - -struct Target { - float x; - float y; - float theta; - bool facing; - bool reached; -} target; - -void settarget(float targetX, float targetY, float targetTheta, bool targetfacing = true); -void settarget(Target); -Target gettarget(); - -bool flag_terminate;// = false; - -private: - -void ai_thread (); -static void aithreadwrapper(void const *arg){ ((AI*)arg)->ai_thread(); } - -}; - -#endif //AI_H \ No newline at end of file