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.
Dependencies: mbed
SaphTeamRacing.h@18:daba0b3777c0, 2019-06-07 (annotated)
- Committer:
- SolalNathan
- Date:
- Fri Jun 07 01:11:01 2019 +0000
- Revision:
- 18:daba0b3777c0
formatage du code en differents modules
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
SolalNathan | 18:daba0b3777c0 | 1 | #ifndef STR_H |
SolalNathan | 18:daba0b3777c0 | 2 | #define STR_H |
SolalNathan | 18:daba0b3777c0 | 3 | |
SolalNathan | 18:daba0b3777c0 | 4 | #include "mbed.h" |
SolalNathan | 18:daba0b3777c0 | 5 | #include <math.h> |
SolalNathan | 18:daba0b3777c0 | 6 | |
SolalNathan | 18:daba0b3777c0 | 7 | // importer toutes les fonctions ici |
SolalNathan | 18:daba0b3777c0 | 8 | |
SolalNathan | 18:daba0b3777c0 | 9 | // Servo |
SolalNathan | 18:daba0b3777c0 | 10 | float angle_servo(float *direction); |
SolalNathan | 18:daba0b3777c0 | 11 | // Lidar |
SolalNathan | 18:daba0b3777c0 | 12 | void interrupt_lidar_rx(Serial lidar, bool *tableau_en_cours, |
SolalNathan | 18:daba0b3777c0 | 13 | uint8_t *flag_fin_tour_lidar, float* tableau_distance0, |
SolalNathan | 18:daba0b3777c0 | 14 | float* tableau_distance1); |
SolalNathan | 18:daba0b3777c0 | 15 | void afficher_lidar(float *tableau_distances_var, Serial pc); |
SolalNathan | 18:daba0b3777c0 | 16 | // Utils |
SolalNathan | 18:daba0b3777c0 | 17 | float distance(float x_1, float x_2, float y_1, float y_2); |
SolalNathan | 18:daba0b3777c0 | 18 | // Direction |
SolalNathan | 18:daba0b3777c0 | 19 | void update_direction(float* list_lidar_var, float* vecteur); |
SolalNathan | 18:daba0b3777c0 | 20 | |
SolalNathan | 18:daba0b3777c0 | 21 | #endif |