TRR 2018 / Mbed 2 deprecated biniou-TRR2019-DLVV

Dependencies:   mbed MPU6050

odom.h

Committer:
GaspardD
Date:
2019-10-02
Revision:
8:f23601373e8b
Parent:
6:ab9f3695633f

File content as of revision 8:f23601373e8b:

#ifndef H_ODOM
#define H_ODOM

#include "mbed.h"
#include "chassis_mode.h"

/*
Globals
*/
extern InterruptIn b_ODOM_odom;

extern double d_ODOM_distFromSectionStart_m;
extern double d_ODOM_distFromGlobalStart_m;

extern double d_ODOM_speed_mps;
extern double d_ODOM_accel_mpsps;


extern double d_ODOM_computed_pos_m;

extern int i_ODOM_last_time_ms;
extern int i_ODOM_time_ms;

/*
Functions
*/
void it_odom();
void update_speed();

#endif