Time is good

Dependencies:   RoboClaw mbed

Fork of Robot2016_2-0 by ARES

Committer:
IceTeam
Date:
Fri May 06 15:25:21 2016 +0000
Revision:
92:f09f55aa992b
Parent:
90:78d2c1527c95
Child:
93:c0b040954eac
Rajout de ControlleurPince & StepperMotor;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
IceTeam 81:e7b03e81b025 1 #ifndef FONCTIONS_H
IceTeam 81:e7b03e81b025 2 #define FONCTIONS_H
IceTeam 81:e7b03e81b025 3
IceTeam 81:e7b03e81b025 4 #include "RoboClaw/RoboClaw.h"
IceTeam 81:e7b03e81b025 5 #include "mbed.h"
IceTeam 81:e7b03e81b025 6
IceTeam 92:f09f55aa992b 7 /* Classes du projet :
IceTeam 92:f09f55aa992b 8 AX12
IceTeam 92:f09f55aa992b 9 Roboclaw
IceTeam 92:f09f55aa992b 10 */
IceTeam 92:f09f55aa992b 11
IceTeam 81:e7b03e81b025 12 extern BusOut drapeau;
IceTeam 81:e7b03e81b025 13 extern RoboClaw roboclaw;
IceTeam 81:e7b03e81b025 14 extern AnalogIn Rcapt1;
IceTeam 81:e7b03e81b025 15 extern int RvalRcapt1;
IceTeam 81:e7b03e81b025 16 extern AnalogIn Rcapt2;
IceTeam 81:e7b03e81b025 17 extern int RvalRcapt2;
IceTeam 81:e7b03e81b025 18 extern AnalogIn Rcapt3;
IceTeam 81:e7b03e81b025 19 extern int RvalRcapt3;
IceTeam 81:e7b03e81b025 20 extern int Ravance;
IceTeam 81:e7b03e81b025 21 extern DigitalIn start;
IceTeam 81:e7b03e81b025 22
IceTeam 83:714fa414b2bf 23 extern DigitalIn CAMP;
IceTeam 83:714fa414b2bf 24 extern DigitalIn START;
IceTeam 83:714fa414b2bf 25 extern DigitalOut LEDR;
IceTeam 83:714fa414b2bf 26 extern DigitalOut LEDV;
IceTeam 84:b54822c913b0 27 extern DigitalIn button;
IceTeam 83:714fa414b2bf 28 extern int SCouleur;
IceTeam 90:78d2c1527c95 29 extern float R_SEUIL_SHARP;
IceTeam 83:714fa414b2bf 30
IceTeam 81:e7b03e81b025 31 // Fonctions main.cpp
IceTeam 81:e7b03e81b025 32 void Sharps();
IceTeam 87:60d81ecab4f5 33 void endFonc ();
IceTeam 92:f09f55aa992b 34 void init();
IceTeam 87:60d81ecab4f5 35
IceTeam 87:60d81ecab4f5 36 //vFonctions deplacement.cpp
IceTeam 81:e7b03e81b025 37 void GotoThet (float timer, int signe);
IceTeam 81:e7b03e81b025 38 void GotoDist (float timer);
IceTeam 88:e4de39dd3e2e 39 void GotoArr(float timer);
IceTeam 89:46730de0d013 40 void GotoThet(double theta_);
IceTeam 81:e7b03e81b025 41
IceTeam 81:e7b03e81b025 42 // Fonctions test.cpp
IceTeam 81:e7b03e81b025 43 void wait_start();
IceTeam 81:e7b03e81b025 44 void TestDist3(float start, float pas);
IceTeam 81:e7b03e81b025 45 void TestThet3(float start, float pas);
IceTeam 81:e7b03e81b025 46 void compareThet(float start);
IceTeam 81:e7b03e81b025 47
IceTeam 83:714fa414b2bf 48 // Fonctions couleur.cpp
IceTeam 83:714fa414b2bf 49 void depart(void);
IceTeam 83:714fa414b2bf 50 void changeCamp(void);
IceTeam 83:714fa414b2bf 51
IceTeam 89:46730de0d013 52 #define ENTRAXE 243.8
IceTeam 89:46730de0d013 53
IceTeam 89:46730de0d013 54 #define accel_angle 400
IceTeam 88:e4de39dd3e2e 55 #define vitesse_angle 400
IceTeam 88:e4de39dd3e2e 56 #define deccel_angle 400
IceTeam 81:e7b03e81b025 57
IceTeam 88:e4de39dd3e2e 58 #define accel_dista 2000
IceTeam 88:e4de39dd3e2e 59 #define vitesse_dista 2000
IceTeam 88:e4de39dd3e2e 60 #define deccel_dista 2000
IceTeam 81:e7b03e81b025 61
IceTeam 81:e7b03e81b025 62 #define waiting_time 1
IceTeam 81:e7b03e81b025 63 #define GAUCHE 1
IceTeam 81:e7b03e81b025 64 #define DROITE -1
IceTeam 81:e7b03e81b025 65
IceTeam 83:714fa414b2bf 66 #define VERT 1
IceTeam 83:714fa414b2bf 67 #define VIOLET 2
IceTeam 83:714fa414b2bf 68 #define NOIR 3
IceTeam 83:714fa414b2bf 69
IceTeam 81:e7b03e81b025 70 #endif