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.
sensors/sensors.h
- Committer:
- shimizuta
- Date:
- 2019-05-20
- Revision:
- 50:3e73f68c3b37
- Parent:
- 35:04699b49c463
File content as of revision 50:3e73f68c3b37:
#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 deg,int eccount) ;
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();
extern CAN can1;
void can_send(int mode, float duty);
enum EVENT {
G_OPEN,
G_CLOSE,
GOAL,
};
extern int hand_mode;
int FileOpen();
void FileWrite();
void FileClose();
void LoadParameter();
struct Param
{
float argument[2];
float duty;
float condition;
};
extern Param params[17]; //とりあえずいっぱい作った
#endif