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
LightCommunication.h
- Committer:
- Kristof@LAPTOP-FT09DA9V
- Date:
- 2017-05-10
- Revision:
- 9:8c5229dfab82
- Parent:
- 7:1d77c7e0208c
- Child:
- 10:7eaaa891ab81
File content as of revision 9:8c5229dfab82:
//
// 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();
void getSerial(char * buf);
void getIRStyle(uint8_t* buf);
void receiveData();
float toFloat(int8_t);
float right,left;
bool needsToStop();
Serial * device;
ReceiverIR * ir_rx;
Mutex * mut;
float getRight(float);
float getLeft(float);
};
#endif //PROJ2_LIGHTCOMMUNICATION_H
