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: captUS.h
- Revision:
- 26:bb2b778bd351
- Parent:
- 25:869b1c1f51a7
diff -r 869b1c1f51a7 -r bb2b778bd351 captUS.h --- a/captUS.h Thu Oct 29 07:53:25 2020 +0000 +++ b/captUS.h Tue Nov 03 16:29:13 2020 +0000 @@ -1,8 +1,5 @@ // Nom du fichier : captUS.h -//#ifndef CAPTUS_H -//#define CAPTUS_H -//#include "mbed.h" #include "math.h" #define LONGUEUR_TAB 2000 @@ -11,8 +8,6 @@ #define THETA 60 // extern -//extern double us_out[6]; - extern unsigned int us_high[6]; extern unsigned int us_low[6]; extern unsigned int us_diff[6]; @@ -27,7 +22,7 @@ // Prototypes void captUS_trig(); -//void captUS_init(); +void captUS_convToDist(void); void echoRise1(); void echoFall1(); @@ -42,27 +37,3 @@ void echoRise6(); void echoFall6(); -/********************************** - * Création d'une fonction qui * - * convertis le temps en distance * - **********************************/ -void captUS_convToDist(void); - - -/******************************************** - * nous permet de placer l'origine au coins * - * de la table * - ********************************************/ -//void changementBase(double* x_detect, double* y_detect); - -/******************************************* - * nous permet de détecter un obstacle * - * * - * false : personne | true : quelquechoses * - *******************************************/ -//bool obstacleSpoted(float dist,double x_robot,double y_robot ,double phi, char I_theta); - - - - -//#endif // CAPTUS_H \ No newline at end of file