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: direction.h
- Revision:
- 3:97827746c632
- Parent:
- 0:9eb40ee5ff41
- Child:
- 4:c393c14f4502
--- a/direction.h Fri May 31 11:17:32 2019 +0000 +++ b/direction.h Fri May 31 13:45:02 2019 +0000 @@ -102,6 +102,9 @@ int convers_vitesse_tempsh(float vitesse){ int t_vitesse; - t_vitesse = int (vitesse *(1420.0-1480.0)/vitesse_max + 1480.0) ; // (us) + t_vitesse = int (vitesse *(1440.0-1480.0)/vitesse_max + 1480.0) ; // (us) + if (t_vitesse>1480){ + return(1480); + } return(t_vitesse); }