Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed Eurobot_2012_Primary
Diff: ai/ai.h
- Revision:
- 4:7b7334441da9
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/ai/ai.h Thu Apr 26 22:05:59 2012 +0000
@@ -0,0 +1,33 @@
+#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;
+} 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