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.
Diff: log.h
- Revision:
- 9:1b54bac6d9a7
- Child:
- 10:e63fe4080760
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/log.h Thu Oct 03 23:28:56 2019 +0000 @@ -0,0 +1,28 @@ +#ifndef H_LOG +#define H_LOG + + +#define LOG_SIZE 2000 +#include "mbed.h" + +typedef struct sample { + int timestamp; + double left_90; + double right_90; + double left_45; + double right_45; + double pwm_dir; + double odom; + double speed; +}s_Sample; + + +void log_start(int duration_ms); +void log_check(); +extern Serial rs_LOG_pc; +extern bool b_LOG_READY; +extern s_Sample s_LOG_history[LOG_SIZE]; +extern int i_LOG_index_data; + + +#endif \ No newline at end of file