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@50:3e73f68c3b37, 2019-05-20 (annotated)
- Committer:
- shimizuta
- Date:
- Mon May 20 01:52:35 2019 +0000
- Revision:
- 50:3e73f68c3b37
- Parent:
- 35:04699b49c463
uw
Who changed what in which revision?
| User | Revision | Line number | New 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(); |
| shimizuta | 50:3e73f68c3b37 | 12 | int checkUW(double uwdist,double deg,int eccount) ; |
| MazeTaka | 34:0a8ae7f92262 | 13 | |
| shimizuta | 22:0ed9de464f40 | 14 | |
| shimizuta | 22:0ed9de464f40 | 15 | void set_gyro(); |
| shimizuta | 22:0ed9de464f40 | 16 | |
| shimizuta | 22:0ed9de464f40 | 17 | extern Ec ec_lo; |
| shimizuta | 22:0ed9de464f40 | 18 | extern Ec ec_li; |
| shimizuta | 22:0ed9de464f40 | 19 | |
| yuto17320508 | 32:aee87dcaf7ca | 20 | extern DigitalIn hand; |
| yuto17320508 | 32:aee87dcaf7ca | 21 | |
| shimizuta | 22:0ed9de464f40 | 22 | extern DigitalIn bus_in; |
| shimizuta | 22:0ed9de464f40 | 23 | extern DigitalIn switch_lo; |
| shimizuta | 22:0ed9de464f40 | 24 | extern DigitalIn switch_li; |
| yuto17320508 | 33:2dbbe198adaf | 25 | extern InterruptIn switch_LR; |
| yuto17320508 | 32:aee87dcaf7ca | 26 | extern DigitalIn switch_modes[3]; |
| yuto17320508 | 32:aee87dcaf7ca | 27 | //extern InterruptIn mode4; |
| shimizuta | 22:0ed9de464f40 | 28 | |
| yuto17320508 | 25:c740e6fd5dab | 29 | extern DigitalOut led4; |
| yuto17320508 | 25:c740e6fd5dab | 30 | |
| shimizuta | 22:0ed9de464f40 | 31 | void wait_gerege(); |
| shimizuta | 22:0ed9de464f40 | 32 | |
| shimizuta | 22:0ed9de464f40 | 33 | extern CAN can1; |
| shimizuta | 22:0ed9de464f40 | 34 | void can_send(int mode, float duty); |
| shimizuta | 22:0ed9de464f40 | 35 | enum EVENT { |
| yuto17320508 | 35:04699b49c463 | 36 | G_OPEN, |
| yuto17320508 | 35:04699b49c463 | 37 | G_CLOSE, |
| shimizuta | 22:0ed9de464f40 | 38 | GOAL, |
| shimizuta | 22:0ed9de464f40 | 39 | }; |
| shimizuta | 22:0ed9de464f40 | 40 | extern int hand_mode; |
| shimizuta | 22:0ed9de464f40 | 41 | |
| yuto17320508 | 33:2dbbe198adaf | 42 | |
| shimizuta | 26:5fb1aa9cb7f0 | 43 | int FileOpen(); |
| shimizuta | 26:5fb1aa9cb7f0 | 44 | void FileWrite(); |
| shimizuta | 26:5fb1aa9cb7f0 | 45 | void FileClose(); |
| yuto17320508 | 33:2dbbe198adaf | 46 | |
| shimizuta | 50:3e73f68c3b37 | 47 | |
| shimizuta | 50:3e73f68c3b37 | 48 | void LoadParameter(); |
| shimizuta | 50:3e73f68c3b37 | 49 | struct Param |
| shimizuta | 50:3e73f68c3b37 | 50 | { |
| shimizuta | 50:3e73f68c3b37 | 51 | float argument[2]; |
| shimizuta | 50:3e73f68c3b37 | 52 | float duty; |
| shimizuta | 50:3e73f68c3b37 | 53 | float condition; |
| shimizuta | 50:3e73f68c3b37 | 54 | }; |
| shimizuta | 50:3e73f68c3b37 | 55 | extern Param params[17]; //とりあえずいっぱい作った |
| shimizuta | 50:3e73f68c3b37 | 56 | |
| shimizuta | 50:3e73f68c3b37 | 57 | |
| shimizuta | 21:14133581387b | 58 | #endif |