Voili voilou

Dependencies:   RoboClaw StepperMotor mbed

Fork of Robot2016_2-0 by ARES

Revision:
41:b5a2fbc20beb
Child:
44:b1fd7489369f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Functions/func.h	Wed Apr 13 11:27:34 2016 +0000
@@ -0,0 +1,43 @@
+#ifndef FUNC_H
+#define FUNC_H
+
+#include "mbed.h"
+#include "../RoboClaw/RoboClaw.h"
+#include "../Odometry/Odometry.h"
+#include "../StepperMotor/Stepper.h"
+#include "Map/Map.h"
+#include "AX12.h"
+
+#define SEUIL 0.25
+
+extern Serial logger;
+extern RoboClaw roboclaw;
+extern DigitalOut bleu;
+extern DigitalOut blanc;
+extern DigitalOut rouge;
+extern Stepper RMot;
+extern Stepper ZMot;
+extern Stepper LMot;
+extern AnalogIn capt1;
+extern AnalogIn capt2;
+extern AnalogIn capt3;
+
+extern int i, state;
+extern bool EL, EZ, ER;
+
+void ELpressed(void);
+void ELunpressed(void);
+void EZpressed(void);
+void EZunpressed(void);
+void ERpressed(void);
+void ERunpressed(void);
+
+void pressed(void);
+void unpressed(void);
+void JPO(void);
+
+void init_ax12(void);
+void goHome(void);
+void checkAround(void);
+
+#endif
\ No newline at end of file