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.
Diff: utils.h
- Revision:
- 6:ab9f3695633f
- Parent:
- 5:8bbe640528bc
- Child:
- 8:f23601373e8b
--- a/utils.h Sun Sep 29 17:09:48 2019 +0000 +++ b/utils.h Sun Sep 29 20:07:54 2019 +0000 @@ -2,15 +2,23 @@ #define UTILS_H #include "mbed.h" - -/* -Types -*/ +#include "chassis_mode.h" /* Structs */ +typedef struct s_section { + double targetSpeed_mps; + double consigne_position; + double lng_section_m; + double coef_p; + double coef_i; + double coef_d; + s_section* nextSection; +}s_Section; + + /* Globals */ @@ -19,9 +27,11 @@ extern bool b_UTILS_flag_emergency_stop; extern Serial pc; +extern Serial odroid; extern InterruptIn button; -extern DigitalIn chassisMode; +extern s_Section* s_UTILS_currentSection; + /* Functions