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: sm_sections.h
- Revision:
- 6:ab9f3695633f
- Parent:
- 4:efa207509f63
- Child:
- 8:f23601373e8b
--- a/sm_sections.h Sun Sep 29 17:09:48 2019 +0000
+++ b/sm_sections.h Sun Sep 29 20:07:54 2019 +0000
@@ -15,33 +15,17 @@
RUNNING_SECTION
}E_STATE_SECTIONS;
-
-/*
-Structures
-*/
-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;
-
-
/*
Variables
*/
-
-extern s_Section* currentSection;
+extern E_STATE_SECTIONS e_stateSections;
/*
Functions
*/
-void init_sm_servo();
-void update_sm_servo();
-void output_sm_servo();
+void init_sm_sections();
+void update_sm_sections();
+void output_sm_sections();