TRR 2018 / Mbed 2 deprecated biniou-TRR2019-DLVV

Dependencies:   mbed MPU6050

Committer:
GaspardD
Date:
Fri Oct 04 09:58:51 2019 +0000
Revision:
11:2156cb77d0d6
Parent:
10:e63fe4080760
Child:
12:58ad06f9847d
version avec log et tout

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 10:e63fe4080760 5 #define LOG_SIZE 5000
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 10:e63fe4080760 14 int 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 11:2156cb77d0d6 22 void log_stop();
GaspardD 10:e63fe4080760 23 void log_pc();
GaspardD 9:1b54bac6d9a7 24 extern Serial rs_LOG_pc;
GaspardD 10:e63fe4080760 25 //extern Serial rs_LOG_odroid;
GaspardD 9:1b54bac6d9a7 26 extern bool b_LOG_READY;
GaspardD 9:1b54bac6d9a7 27 extern s_Sample s_LOG_history[LOG_SIZE];
GaspardD 9:1b54bac6d9a7 28 extern int i_LOG_index_data;
GaspardD 9:1b54bac6d9a7 29
GaspardD 9:1b54bac6d9a7 30
GaspardD 9:1b54bac6d9a7 31 #endif