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
- Committer:
- GaspardD
- Date:
- 2019-10-04
- Revision:
- 10:e63fe4080760
- Parent:
- 9:1b54bac6d9a7
- Child:
- 12:58ad06f9847d
File content as of revision 10:e63fe4080760:
#ifndef UTILS_H #define UTILS_H #include "mbed.h" #include "chassis_mode.h" #include "log.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 */ extern Timer t_utils_timerSinceStart; extern bool b_UTILS_flag_button_ESC; extern bool b_UTILS_flag_button_SECTIONS; extern bool b_UTILS_flag_emergency_stop; extern InterruptIn b_UTILS_button; extern InterruptIn b_UTILS_emergency_signal; extern s_Section* s_UTILS_currentSection; /* Functions */ void it_pressed(); void it_emergency_signal_recieved(); void bubbleSort(double arr[], int n); void swap(double *xp, double *yp); #endif