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: RemoteIR m3pi mbed-rtos mbed
Diff: LightCommunication.h
- 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
