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@10:e63fe4080760, 2019-10-04 (annotated)
- Committer:
- GaspardD
- Date:
- Fri Oct 04 09:46:00 2019 +0000
- Revision:
- 10:e63fe4080760
- Parent:
- 9:1b54bac6d9a7
- Child:
- 11:2156cb77d0d6
ca marche
Who changed what in which revision?
User | Revision | Line number | New 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 | 10:e63fe4080760 | 22 | void log_pc(); |
GaspardD | 9:1b54bac6d9a7 | 23 | extern Serial rs_LOG_pc; |
GaspardD | 10:e63fe4080760 | 24 | //extern Serial rs_LOG_odroid; |
GaspardD | 9:1b54bac6d9a7 | 25 | extern bool b_LOG_READY; |
GaspardD | 9:1b54bac6d9a7 | 26 | extern s_Sample s_LOG_history[LOG_SIZE]; |
GaspardD | 9:1b54bac6d9a7 | 27 | extern int i_LOG_index_data; |
GaspardD | 9:1b54bac6d9a7 | 28 | |
GaspardD | 9:1b54bac6d9a7 | 29 | |
GaspardD | 9:1b54bac6d9a7 | 30 | #endif |