TRR 2018 / Mbed 2 deprecated biniou-TRR2019-DLVV

Dependencies:   mbed MPU6050

utils.h

Committer:
GaspardD
Date:
2019-09-29
Revision:
6:ab9f3695633f
Parent:
5:8bbe640528bc
Child:
8:f23601373e8b

File content as of revision 6:ab9f3695633f:

#ifndef UTILS_H
#define UTILS_H

#include "mbed.h"
#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
*/
extern Timer timerSinceStart;
extern bool b_UTILS_flag_button;
extern bool b_UTILS_flag_emergency_stop;

extern Serial pc;
extern Serial odroid;
extern InterruptIn button;

extern s_Section* s_UTILS_currentSection;


/*
Functions
*/
void it_pressed();

#endif