TRR 2018 / Mbed 2 deprecated biniou-TRR2019-DLVV

Dependencies:   mbed MPU6050

Committer:
GaspardD
Date:
Thu Oct 03 23:28:56 2019 +0000
Revision:
9:1b54bac6d9a7
Child:
10:e63fe4080760
a tester ;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
GaspardD 9:1b54bac6d9a7 1 #ifndef H_LOG
GaspardD 9:1b54bac6d9a7 2 #define H_LOG
GaspardD 9:1b54bac6d9a7 3
GaspardD 9:1b54bac6d9a7 4
GaspardD 9:1b54bac6d9a7 5 #define LOG_SIZE 2000
GaspardD 9:1b54bac6d9a7 6 #include "mbed.h"
GaspardD 9:1b54bac6d9a7 7
GaspardD 9:1b54bac6d9a7 8 typedef struct sample {
GaspardD 9:1b54bac6d9a7 9 int timestamp;
GaspardD 9:1b54bac6d9a7 10 double left_90;
GaspardD 9:1b54bac6d9a7 11 double right_90;
GaspardD 9:1b54bac6d9a7 12 double left_45;
GaspardD 9:1b54bac6d9a7 13 double right_45;
GaspardD 9:1b54bac6d9a7 14 double pwm_dir;
GaspardD 9:1b54bac6d9a7 15 double odom;
GaspardD 9:1b54bac6d9a7 16 double speed;
GaspardD 9:1b54bac6d9a7 17 }s_Sample;
GaspardD 9:1b54bac6d9a7 18
GaspardD 9:1b54bac6d9a7 19
GaspardD 9:1b54bac6d9a7 20 void log_start(int duration_ms);
GaspardD 9:1b54bac6d9a7 21 void log_check();
GaspardD 9:1b54bac6d9a7 22 extern Serial rs_LOG_pc;
GaspardD 9:1b54bac6d9a7 23 extern bool b_LOG_READY;
GaspardD 9:1b54bac6d9a7 24 extern s_Sample s_LOG_history[LOG_SIZE];
GaspardD 9:1b54bac6d9a7 25 extern int i_LOG_index_data;
GaspardD 9:1b54bac6d9a7 26
GaspardD 9:1b54bac6d9a7 27
GaspardD 9:1b54bac6d9a7 28 #endif