Time is good

Dependencies:   RoboClaw mbed

Fork of Robot2016_2-0 by ARES

Revision:
81:e7b03e81b025
Child:
82:07e13071dd7b
diff -r cd4960dfa47e -r e7b03e81b025 entete.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/entete.h	Thu May 05 18:17:08 2016 +0000
@@ -0,0 +1,43 @@
+#ifndef FONCTIONS_H
+#define FONCTIONS_H
+
+#include "RoboClaw/RoboClaw.h"
+#include "mbed.h"
+
+extern BusOut drapeau;
+extern RoboClaw roboclaw;
+extern AnalogIn Rcapt1;
+extern int RvalRcapt1;
+extern AnalogIn Rcapt2;
+extern int RvalRcapt2;
+extern AnalogIn Rcapt3;
+extern int RvalRcapt3;
+extern int Ravance;
+extern DigitalIn start;
+
+// Fonctions main.cpp
+void Sharps();
+void GotoThet (float timer, int signe);
+void GotoDist (float timer);
+
+// Fonctions test.cpp
+void wait_start();
+void TestDist3(float start, float pas);
+void TestThet3(float start, float pas);
+void compareThet(float start);
+
+#define ADR 0x80
+#define accel_angle 12000
+#define vitesse_angle 10000
+#define deccel_angle 12000
+
+#define accel_dista 12000
+#define vitesse_dista 12000
+#define deccel_dista 12000
+
+#define waiting_time 1
+#define R_SEUIL_SHARP 0.3
+#define GAUCHE 1
+#define DROITE -1
+
+#endif
\ No newline at end of file