ROBOSTEP_5期 / Mbed 2 deprecated George_Master_Param

Dependencies:   mbed robot

sensors/sensors.h

Committer:
shimizuta
Date:
2019-05-17
Revision:
47:b77796718a9b
Parent:
45:6df20a8f4b21

File content as of revision 47:b77796718a9b:

#ifndef INCLUDED_SENSORS_H
#define INCLUDED_SENSORS_H
#include "hcsr04.h"
#include "EC.h"
extern int RightOrLeft;

extern const float kOldWeightLight;
extern LowPassFilter lowpassfilter[2];
float get_dist_forward();
float get_dist_back();
float Hcsr04BackWithEc();
int checkUW(double uwdist,double theta,int eccount, int is_getlog = 0);


void set_gyro();

extern Ec ec_lo;
extern Ec ec_li;

extern DigitalIn hand;

extern DigitalIn bus_in;
extern DigitalIn switch_lo;
extern DigitalIn switch_li;
extern InterruptIn switch_LR;
extern DigitalIn switch_modes[3];
//extern InterruptIn mode4;

extern DigitalOut led4;

void wait_gerege();


enum CanID{
    NORMAL,
    UNSYNC,
};
extern CAN can1;
void can_send(int mode, float duty, int id = NORMAL);
enum EVENT {
    G_OPEN,
    G_CLOSE,
    GOAL,
};
extern int hand_mode;


int FileOpen();
void FileWrite();
void FileWrite(const char *str);
void FileClose();

#endif