Kristof T'Jonck / Mbed 2 deprecated proj2_car

Dependencies:   RemoteIR m3pi mbed-rtos mbed

Committer:
Kristof@LAPTOP-FT09DA9V
Date:
Wed May 10 00:01:25 2017 +0200
Revision:
5:5d2beac511c1
Parent:
3:ecb3fa0406e8
Child:
7:1d77c7e0208c
added communication

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kristof@LAPTOP-FT09DA9V.home 1:76cff32344d1 1 //
Kristof@LAPTOP-FT09DA9V.home 1:76cff32344d1 2 // Created by Kristof on 5/9/2017.
Kristof@LAPTOP-FT09DA9V.home 1:76cff32344d1 3 //
Kristof@LAPTOP-FT09DA9V.home 1:76cff32344d1 4
Kristof@LAPTOP-FT09DA9V.home 1:76cff32344d1 5 #ifndef PROJ2_LIGHTCOMMUNICATION_H
Kristof@LAPTOP-FT09DA9V.home 1:76cff32344d1 6 #define PROJ2_LIGHTCOMMUNICATION_H
Kristof@LAPTOP-FT09DA9V.home 1:76cff32344d1 7
Kristof@LAPTOP-FT09DA9V.home 1:76cff32344d1 8 #include <cstdint>
Kristof@LAPTOP-FT09DA9V.home 1:76cff32344d1 9 #include "stdio.h"
Kristof@LAPTOP-FT09DA9V.home 1:76cff32344d1 10 #include "rtos.h"
Kristof@LAPTOP-FT09DA9V.home 1:76cff32344d1 11 #include "ReceiverIR.h"
Kristof@LAPTOP-FT09DA9V.home 1:76cff32344d1 12
Kristof@LAPTOP-FT09DA9V.home 1:76cff32344d1 13 #define OWN_ID 1
Kristof@LAPTOP-FT09DA9V.home 1:76cff32344d1 14
Kristof@LAPTOP-FT09DA9V.home 1:76cff32344d1 15 class LightCommunication {
Kristof@LAPTOP-FT09DA9V.home 1:76cff32344d1 16 public:
Kristof@LAPTOP-FT09DA9V.home 1:76cff32344d1 17 LightCommunication();
Kristof@LAPTOP-FT09DA9V.home 1:76cff32344d1 18
Kristof@LAPTOP-FT09DA9V.home 1:76cff32344d1 19 virtual ~LightCommunication();
Kristof@LAPTOP-FT09DA9V.home 1:76cff32344d1 20
Kristof@LAPTOP-FT09DA9V 5:5d2beac511c1 21 static void getSerial(char * buf);
Kristof@LAPTOP-FT09DA9V 5:5d2beac511c1 22 static void getIRStyle(uint8_t* buf);
Kristof@LAPTOP-FT09DA9V.home 1:76cff32344d1 23 static void receiveData();
Kristof@LAPTOP-FT09DA9V.home 1:76cff32344d1 24 static float toFloat(int8_t);
Kristof@LAPTOP-FT09DA9V.home 1:76cff32344d1 25 static float right,left;
Kristof@LAPTOP-FT09DA9V.home 1:76cff32344d1 26 static bool needsToStop();
Kristof@LAPTOP-FT09DA9V.home 3:ecb3fa0406e8 27 static Serial device;
Kristof@LAPTOP-FT09DA9V.home 3:ecb3fa0406e8 28 static ReceiverIR ir_rx;
Kristof@LAPTOP-FT09DA9V.home 1:76cff32344d1 29 static Mutex mut;
Kristof@LAPTOP-FT09DA9V.home 2:70240992e869 30 static float getRight(float);
Kristof@LAPTOP-FT09DA9V.home 2:70240992e869 31 static float getLeft(float);
Kristof@LAPTOP-FT09DA9V.home 1:76cff32344d1 32
Kristof@LAPTOP-FT09DA9V.home 1:76cff32344d1 33 };
Kristof@LAPTOP-FT09DA9V.home 1:76cff32344d1 34
Kristof@LAPTOP-FT09DA9V.home 1:76cff32344d1 35
Kristof@LAPTOP-FT09DA9V.home 1:76cff32344d1 36 #endif //PROJ2_LIGHTCOMMUNICATION_H