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.
log.h
- Committer:
- GaspardD
- Date:
- 2019-10-04
- Revision:
- 12:58ad06f9847d
- Parent:
- 11:2156cb77d0d6
File content as of revision 12:58ad06f9847d:
#ifndef H_LOG #define H_LOG #define LOG_SIZE 3000 #define LOG_PERIOD_MS 40 #include "mbed.h" typedef struct sample { int timestamp; double left_90; double right_90; double left_45; double right_45; int pwm_dir; double odom; double speed; double angle_bord0; double angle_bord1; double angle_bord2; double angle_bord3; double angle_bord4; double angle_bord5; double angle_pos; double angle; double distParcourue; }s_Sample; void log_start(int duration_ms); void log_check(); void log_stop(); void log_pc(); extern Serial rs_LOG; extern bool b_LOG_READY; extern s_Sample s_LOG_history[LOG_SIZE]; extern int i_LOG_index_data; #endif