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@26:5fb1aa9cb7f0, 2019-05-06 (annotated)
- Committer:
- shimizuta
- Date:
- Mon May 06 06:28:41 2019 +0000
- Revision:
- 26:5fb1aa9cb7f0
- Parent:
- 25:c740e6fd5dab
- Child:
- 32:aee87dcaf7ca
can get log
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" |
| shimizuta | 22:0ed9de464f40 | 5 | extern const float kOldWeightLight; |
| shimizuta | 21:14133581387b | 6 | extern LowPassFilter lowpassfilter[2]; |
| shimizuta | 22:0ed9de464f40 | 7 | float get_dist_forward(); |
| shimizuta | 22:0ed9de464f40 | 8 | float get_dist_back(); |
| shimizuta | 22:0ed9de464f40 | 9 | |
| shimizuta | 22:0ed9de464f40 | 10 | void set_gyro(); |
| shimizuta | 22:0ed9de464f40 | 11 | |
| shimizuta | 22:0ed9de464f40 | 12 | extern Ec ec_lo; |
| shimizuta | 22:0ed9de464f40 | 13 | extern Ec ec_li; |
| shimizuta | 22:0ed9de464f40 | 14 | |
| shimizuta | 22:0ed9de464f40 | 15 | extern DigitalIn bus_in; |
| shimizuta | 22:0ed9de464f40 | 16 | extern DigitalIn switch_lo; |
| shimizuta | 22:0ed9de464f40 | 17 | extern DigitalIn switch_li; |
| shimizuta | 26:5fb1aa9cb7f0 | 18 | extern InterruptIn mode4; |
| shimizuta | 22:0ed9de464f40 | 19 | |
| yuto17320508 | 25:c740e6fd5dab | 20 | extern DigitalOut led4; |
| yuto17320508 | 25:c740e6fd5dab | 21 | |
| shimizuta | 22:0ed9de464f40 | 22 | void wait_gerege(); |
| shimizuta | 22:0ed9de464f40 | 23 | |
| shimizuta | 22:0ed9de464f40 | 24 | extern CAN can1; |
| shimizuta | 22:0ed9de464f40 | 25 | void can_send(int mode, float duty); |
| shimizuta | 22:0ed9de464f40 | 26 | enum EVENT { |
| shimizuta | 22:0ed9de464f40 | 27 | NORMAL, |
| shimizuta | 22:0ed9de464f40 | 28 | GEREGE, |
| shimizuta | 22:0ed9de464f40 | 29 | GOAL, |
| shimizuta | 22:0ed9de464f40 | 30 | }; |
| shimizuta | 22:0ed9de464f40 | 31 | extern int hand_mode; |
| shimizuta | 22:0ed9de464f40 | 32 | |
| shimizuta | 26:5fb1aa9cb7f0 | 33 | |
| shimizuta | 26:5fb1aa9cb7f0 | 34 | int FileOpen(); |
| shimizuta | 26:5fb1aa9cb7f0 | 35 | void FileWrite(); |
| shimizuta | 26:5fb1aa9cb7f0 | 36 | void FileClose(); |
| shimizuta | 21:14133581387b | 37 | #endif |