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
Utils.cpp@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 | #include "SaphTeamRacing.h" |
SolalNathan | 18:daba0b3777c0 | 2 | |
SolalNathan | 18:daba0b3777c0 | 3 | float distance(float x_1, float x_2, float y_1, float y_2) |
SolalNathan | 18:daba0b3777c0 | 4 | { |
SolalNathan | 18:daba0b3777c0 | 5 | /* |
SolalNathan | 18:daba0b3777c0 | 6 | Fonction qui renvoie la distance entre deux points en norme 2. |
SolalNathan | 18:daba0b3777c0 | 7 | */ |
SolalNathan | 18:daba0b3777c0 | 8 | |
SolalNathan | 18:daba0b3777c0 | 9 | float norm2; |
SolalNathan | 18:daba0b3777c0 | 10 | norm2 = sqrt((x_1 - x_2)*(x_1 - x_2) + (y_1 - y_2)*(y_1 - y_2)); |
SolalNathan | 18:daba0b3777c0 | 11 | return norm2; |
SolalNathan | 18:daba0b3777c0 | 12 | } |