before test

Fork of Communication_Robot by Betago

Receiver.h

Committer:
icyzkungz
Date:
2016-06-07
Revision:
14:2b253d0b4e63
Parent:
13:bc19774be4df

File content as of revision 14:2b253d0b4e63:

#ifndef __RECEIVER__H_
#define __RECEIVER__H_

#include "mbed.h"
#include "iSerial.h"
#include "Command.h"
#include "communication.h"
#define RS485_DELAY 100
//#define RS485_DIRC PB_5
#define FLOAT_CONVERTER 10000

class Bear_Receiver
{
private:
    COMMUNICATION *com;

public:
    Bear_Receiver(PinName,PinName,int);
    void FloatSep(float,uint8_t*,uint8_t*);

    //Receiver
    uint8_t ReceiveCommand(uint8_t*,uint8_t*,uint8_t*);
    //Sender
    uint8_t sendKpKiKdLeft(float,float,float);
    uint8_t sendKpKiKdRight(float,float,float);
    uint8_t sendMaxMinLidarDegree(float,float);
    uint8_t sendSensorDataAll1(float*);
    
    uint8_t sendlidar();
};

#endif