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.
utils.h@6:ab9f3695633f, 2019-09-29 (annotated)
- Committer:
- GaspardD
- Date:
- Sun Sep 29 20:07:54 2019 +0000
- Revision:
- 6:ab9f3695633f
- Parent:
- 5:8bbe640528bc
- Child:
- 8:f23601373e8b
jules guesde mc gyver;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
GaspardD | 1:8faddee0e52f | 1 | #ifndef UTILS_H |
GaspardD | 1:8faddee0e52f | 2 | #define UTILS_H |
GaspardD | 1:8faddee0e52f | 3 | |
GaspardD | 1:8faddee0e52f | 4 | #include "mbed.h" |
GaspardD | 6:ab9f3695633f | 5 | #include "chassis_mode.h" |
GaspardD | 1:8faddee0e52f | 6 | |
GaspardD | 1:8faddee0e52f | 7 | /* |
GaspardD | 1:8faddee0e52f | 8 | Structs |
GaspardD | 1:8faddee0e52f | 9 | */ |
GaspardD | 1:8faddee0e52f | 10 | |
GaspardD | 6:ab9f3695633f | 11 | typedef struct s_section { |
GaspardD | 6:ab9f3695633f | 12 | double targetSpeed_mps; |
GaspardD | 6:ab9f3695633f | 13 | double consigne_position; |
GaspardD | 6:ab9f3695633f | 14 | double lng_section_m; |
GaspardD | 6:ab9f3695633f | 15 | double coef_p; |
GaspardD | 6:ab9f3695633f | 16 | double coef_i; |
GaspardD | 6:ab9f3695633f | 17 | double coef_d; |
GaspardD | 6:ab9f3695633f | 18 | s_section* nextSection; |
GaspardD | 6:ab9f3695633f | 19 | }s_Section; |
GaspardD | 6:ab9f3695633f | 20 | |
GaspardD | 6:ab9f3695633f | 21 | |
GaspardD | 1:8faddee0e52f | 22 | /* |
GaspardD | 1:8faddee0e52f | 23 | Globals |
GaspardD | 1:8faddee0e52f | 24 | */ |
GaspardD | 4:efa207509f63 | 25 | extern Timer timerSinceStart; |
GaspardD | 1:8faddee0e52f | 26 | extern bool b_UTILS_flag_button; |
GaspardD | 1:8faddee0e52f | 27 | extern bool b_UTILS_flag_emergency_stop; |
GaspardD | 4:efa207509f63 | 28 | |
GaspardD | 1:8faddee0e52f | 29 | extern Serial pc; |
GaspardD | 6:ab9f3695633f | 30 | extern Serial odroid; |
GaspardD | 4:efa207509f63 | 31 | extern InterruptIn button; |
GaspardD | 1:8faddee0e52f | 32 | |
GaspardD | 6:ab9f3695633f | 33 | extern s_Section* s_UTILS_currentSection; |
GaspardD | 6:ab9f3695633f | 34 | |
GaspardD | 5:8bbe640528bc | 35 | |
GaspardD | 1:8faddee0e52f | 36 | /* |
GaspardD | 1:8faddee0e52f | 37 | Functions |
GaspardD | 1:8faddee0e52f | 38 | */ |
GaspardD | 1:8faddee0e52f | 39 | void it_pressed(); |
GaspardD | 1:8faddee0e52f | 40 | |
GaspardD | 1:8faddee0e52f | 41 | #endif |