Kristof T'Jonck / Mbed 2 deprecated proj2_car

Dependencies:   RemoteIR m3pi mbed-rtos mbed

LightCommunication.h

Committer:
Kristof@LAPTOP-FT09DA9V.home
Date:
2017-05-09
Revision:
3:ecb3fa0406e8
Parent:
2:70240992e869
Child:
5:5d2beac511c1

File content as of revision 3:ecb3fa0406e8:

//
// 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);
    static float getLeft(float);

};


#endif //PROJ2_LIGHTCOMMUNICATION_H