ROBOSTEP_5期 / Mbed 2 deprecated George_Master_Param

Dependencies:   mbed robot

Committer:
shimizuta
Date:
Fri May 17 05:43:51 2019 +0000
Revision:
45:6df20a8f4b21
Parent:
35:04699b49c463
Child:
47:b77796718a9b
not unsync

Who changed what in which revision?

UserRevisionLine numberNew contents of line
shimizuta 21:14133581387b 1 #ifndef INCLUDED_SENSORS_H
shimizuta 21:14133581387b 2 #define INCLUDED_SENSORS_H
shimizuta 21:14133581387b 3 #include "hcsr04.h"
shimizuta 22:0ed9de464f40 4 #include "EC.h"
yuto17320508 33:2dbbe198adaf 5 extern int RightOrLeft;
yuto17320508 33:2dbbe198adaf 6
shimizuta 22:0ed9de464f40 7 extern const float kOldWeightLight;
shimizuta 21:14133581387b 8 extern LowPassFilter lowpassfilter[2];
shimizuta 22:0ed9de464f40 9 float get_dist_forward();
shimizuta 22:0ed9de464f40 10 float get_dist_back();
MazeTaka 34:0a8ae7f92262 11 float Hcsr04BackWithEc();
MazeTaka 34:0a8ae7f92262 12
shimizuta 22:0ed9de464f40 13
shimizuta 22:0ed9de464f40 14 void set_gyro();
shimizuta 22:0ed9de464f40 15
shimizuta 22:0ed9de464f40 16 extern Ec ec_lo;
shimizuta 22:0ed9de464f40 17 extern Ec ec_li;
shimizuta 22:0ed9de464f40 18
yuto17320508 32:aee87dcaf7ca 19 extern DigitalIn hand;
yuto17320508 32:aee87dcaf7ca 20
shimizuta 22:0ed9de464f40 21 extern DigitalIn bus_in;
shimizuta 22:0ed9de464f40 22 extern DigitalIn switch_lo;
shimizuta 22:0ed9de464f40 23 extern DigitalIn switch_li;
yuto17320508 33:2dbbe198adaf 24 extern InterruptIn switch_LR;
yuto17320508 32:aee87dcaf7ca 25 extern DigitalIn switch_modes[3];
yuto17320508 32:aee87dcaf7ca 26 //extern InterruptIn mode4;
shimizuta 22:0ed9de464f40 27
yuto17320508 25:c740e6fd5dab 28 extern DigitalOut led4;
yuto17320508 25:c740e6fd5dab 29
shimizuta 22:0ed9de464f40 30 void wait_gerege();
shimizuta 22:0ed9de464f40 31
shimizuta 45:6df20a8f4b21 32
shimizuta 45:6df20a8f4b21 33 enum CanID{
shimizuta 45:6df20a8f4b21 34 NORMAL,
shimizuta 45:6df20a8f4b21 35 UNSYNC,
shimizuta 45:6df20a8f4b21 36 };
shimizuta 22:0ed9de464f40 37 extern CAN can1;
shimizuta 45:6df20a8f4b21 38 void can_send(int mode, float duty, int id = NORMAL);
shimizuta 22:0ed9de464f40 39 enum EVENT {
yuto17320508 35:04699b49c463 40 G_OPEN,
yuto17320508 35:04699b49c463 41 G_CLOSE,
shimizuta 22:0ed9de464f40 42 GOAL,
shimizuta 22:0ed9de464f40 43 };
shimizuta 22:0ed9de464f40 44 extern int hand_mode;
shimizuta 22:0ed9de464f40 45
yuto17320508 33:2dbbe198adaf 46
shimizuta 26:5fb1aa9cb7f0 47 int FileOpen();
shimizuta 26:5fb1aa9cb7f0 48 void FileWrite();
shimizuta 45:6df20a8f4b21 49 void FileWrite(const char *str);
shimizuta 26:5fb1aa9cb7f0 50 void FileClose();
yuto17320508 33:2dbbe198adaf 51
shimizuta 21:14133581387b 52 #endif