Kristof T'Jonck / Mbed 2 deprecated proj2_car

Dependencies:   RemoteIR m3pi mbed-rtos mbed

Revision:
1:76cff32344d1
Child:
2:70240992e869
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LightCommunication.h	Tue May 09 23:02:13 2017 +0200
@@ -0,0 +1,37 @@
+//
+// Created by Kristof on 5/9/2017.
+//
+
+#ifndef PROJ2_LIGHTCOMMUNICATION_H
+#define PROJ2_LIGHTCOMMUNICATION_H
+
+#include <cstdint>
+#include "stdio.h"
+#include "rtos.h"
+#include "ReceiverIR.h"
+
+#define OWN_ID 1
+
+class LightCommunication {
+public:
+    LightCommunication();
+
+    virtual ~LightCommunication();
+
+    static char * getSerial();
+    static uint8_t * getIRStyle();
+    static void receiveData();
+    static float toFloat(int8_t);
+    static float right,left;
+    static bool needsToStop();
+    static Serial * device;
+    static ReceiverIR * ir_rx;
+    static Mutex mut;
+    static float getRight(float) const;
+
+    static float getLeft(float) const;
+
+};
+
+
+#endif //PROJ2_LIGHTCOMMUNICATION_H