UNFINISHED
Dependencies: HCSR04 SRF05 mbed
gyro.h@0:4ca3e247b86a, 2018-06-08 (annotated)
- Committer:
- Charlie_He
- Date:
- Fri Jun 08 12:29:16 2018 +0000
- Revision:
- 0:4ca3e247b86a
- Child:
- 1:60c79e942c98
TDPS;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Charlie_He | 0:4ca3e247b86a | 1 | #ifndef GYRO_H |
Charlie_He | 0:4ca3e247b86a | 2 | #define GYRO_H |
Charlie_He | 0:4ca3e247b86a | 3 | #include "mbed.h" |
Charlie_He | 0:4ca3e247b86a | 4 | #include "motor.h" |
Charlie_He | 0:4ca3e247b86a | 5 | |
Charlie_He | 0:4ca3e247b86a | 6 | extern int started; |
Charlie_He | 0:4ca3e247b86a | 7 | extern float yaw; |
Charlie_He | 0:4ca3e247b86a | 8 | extern Serial pc; |
Charlie_He | 0:4ca3e247b86a | 9 | extern Timer gotime; |
Charlie_He | 0:4ca3e247b86a | 10 | //extern Motor M1; |
Charlie_He | 0:4ca3e247b86a | 11 | //extern Motor M2; |
Charlie_He | 0:4ca3e247b86a | 12 | |
Charlie_He | 0:4ca3e247b86a | 13 | void init_gyro(); |
Charlie_He | 0:4ca3e247b86a | 14 | void driveit(float t); |
Charlie_He | 0:4ca3e247b86a | 15 | void change(int up); |
Charlie_He | 0:4ca3e247b86a | 16 | void turnL(); |
Charlie_He | 0:4ca3e247b86a | 17 | void turnR(); |
Charlie_He | 0:4ca3e247b86a | 18 | |
Charlie_He | 0:4ca3e247b86a | 19 | #endif |