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.
Dependencies: sensorGen Robot omni_wheel PID jy901 solenoid aqm0802 camera beep kohiMD linesSnsor lpf RCJESC
sensorGen/sensorGen.h@4:4812eb6367b5, 2020-01-30 (annotated)
- Committer:
- THtakahiro702286
- Date:
- Thu Jan 30 09:06:20 2020 +0000
- Revision:
- 4:4812eb6367b5
- Parent:
- 0:ac64597d2ef8
- Child:
- 9:63d7e7f07536
started writing sensorGen
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
piroro4560 | 0:ac64597d2ef8 | 1 | #ifndef SENSORGEN_H |
piroro4560 | 0:ac64597d2ef8 | 2 | #define SENSORGEN_H |
piroro4560 | 0:ac64597d2ef8 | 3 | |
piroro4560 | 0:ac64597d2ef8 | 4 | #include "mbed.h" |
piroro4560 | 0:ac64597d2ef8 | 5 | #include "HCSR04.h" |
piroro4560 | 0:ac64597d2ef8 | 6 | #include "camera.h" |
piroro4560 | 0:ac64597d2ef8 | 7 | #include "line.h" |
piroro4560 | 0:ac64597d2ef8 | 8 | #include "jy901.h" |
THtakahiro702286 | 4:4812eb6367b5 | 9 | #include "pin_config.h" |
piroro4560 | 0:ac64597d2ef8 | 10 | |
piroro4560 | 0:ac64597d2ef8 | 11 | class sensor{ |
piroro4560 | 0:ac64597d2ef8 | 12 | public : |
THtakahiro702286 | 4:4812eb6367b5 | 13 | sensor(); |
THtakahiro702286 | 4:4812eb6367b5 | 14 | |
THtakahiro702286 | 4:4812eb6367b5 | 15 | void sensorloop(); |
piroro4560 | 0:ac64597d2ef8 | 16 | |
THtakahiro702286 | 4:4812eb6367b5 | 17 | // float jy901(); |
THtakahiro702286 | 4:4812eb6367b5 | 18 | |
THtakahiro702286 | 4:4812eb6367b5 | 19 | // float hcsr04(); |
piroro4560 | 0:ac64597d2ef8 | 20 | |
THtakahiro702286 | 4:4812eb6367b5 | 21 | // float camera(); |
THtakahiro702286 | 4:4812eb6367b5 | 22 | |
THtakahiro702286 | 4:4812eb6367b5 | 23 | bool line[6]; |
THtakahiro702286 | 4:4812eb6367b5 | 24 | float angle; |
THtakahiro702286 | 4:4812eb6367b5 | 25 | float angleLimit; |
THtakahiro702286 | 4:4812eb6367b5 | 26 | float ballAngle; |
THtakahiro702286 | 4:4812eb6367b5 | 27 | float ballRange; |
THtakahiro702286 | 4:4812eb6367b5 | 28 | bool ballKeep; |
THtakahiro702286 | 4:4812eb6367b5 | 29 | private: |
THtakahiro702286 | 4:4812eb6367b5 | 30 | Thread thread; |
THtakahiro702286 | 4:4812eb6367b5 | 31 | Line *_line[6]; |
THtakahiro702286 | 4:4812eb6367b5 | 32 | Cam camera; |
THtakahiro702286 | 4:4812eb6367b5 | 33 | JY901 jy; |
THtakahiro702286 | 4:4812eb6367b5 | 34 | DigitalIn limit; |
piroro4560 | 0:ac64597d2ef8 | 35 | } |
piroro4560 | 0:ac64597d2ef8 | 36 | |
piroro4560 | 0:ac64597d2ef8 | 37 | #endif |