Time is good

Dependencies:   RoboClaw mbed

Fork of Robot2016_2-0 by ARES

Committer:
IceTeam
Date:
Fri May 06 17:33:43 2016 +0000
Revision:
93:c0b040954eac
Parent:
92:f09f55aa992b
Child:
94:86b9bd6d5c28
Petits changements pas test?s. Int?gration totale de la pince.;

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 93:c0b040954eac 10 StepperMotor
IceTeam 93:c0b040954eac 11 AX12
IceTeam 92:f09f55aa992b 12 */
IceTeam 92:f09f55aa992b 13
IceTeam 81:e7b03e81b025 14 extern BusOut drapeau;
IceTeam 81:e7b03e81b025 15 extern RoboClaw roboclaw;
IceTeam 81:e7b03e81b025 16 extern AnalogIn Rcapt1;
IceTeam 81:e7b03e81b025 17 extern int RvalRcapt1;
IceTeam 81:e7b03e81b025 18 extern AnalogIn Rcapt2;
IceTeam 81:e7b03e81b025 19 extern int RvalRcapt2;
IceTeam 81:e7b03e81b025 20 extern AnalogIn Rcapt3;
IceTeam 81:e7b03e81b025 21 extern int RvalRcapt3;
IceTeam 81:e7b03e81b025 22 extern int Ravance;
IceTeam 81:e7b03e81b025 23 extern DigitalIn start;
IceTeam 81:e7b03e81b025 24
IceTeam 83:714fa414b2bf 25 extern DigitalIn CAMP;
IceTeam 83:714fa414b2bf 26 extern DigitalIn START;
IceTeam 83:714fa414b2bf 27 extern DigitalOut LEDR;
IceTeam 83:714fa414b2bf 28 extern DigitalOut LEDV;
IceTeam 84:b54822c913b0 29 extern DigitalIn button;
IceTeam 83:714fa414b2bf 30 extern int SCouleur;
IceTeam 90:78d2c1527c95 31 extern float R_SEUIL_SHARP;
IceTeam 83:714fa414b2bf 32
IceTeam 81:e7b03e81b025 33 // Fonctions main.cpp
IceTeam 81:e7b03e81b025 34 void Sharps();
IceTeam 87:60d81ecab4f5 35 void endFonc ();
IceTeam 93:c0b040954eac 36 void init_globals();
IceTeam 87:60d81ecab4f5 37
IceTeam 87:60d81ecab4f5 38 //vFonctions deplacement.cpp
IceTeam 81:e7b03e81b025 39 void GotoDist (float timer);
IceTeam 88:e4de39dd3e2e 40 void GotoArr(float timer);
IceTeam 89:46730de0d013 41 void GotoThet(double theta_);
IceTeam 81:e7b03e81b025 42
IceTeam 81:e7b03e81b025 43 // Fonctions test.cpp
IceTeam 81:e7b03e81b025 44
IceTeam 83:714fa414b2bf 45 // Fonctions couleur.cpp
IceTeam 83:714fa414b2bf 46 void depart(void);
IceTeam 83:714fa414b2bf 47 void changeCamp(void);
IceTeam 83:714fa414b2bf 48
IceTeam 89:46730de0d013 49 #define ENTRAXE 243.8
IceTeam 89:46730de0d013 50
IceTeam 89:46730de0d013 51 #define accel_angle 400
IceTeam 88:e4de39dd3e2e 52 #define vitesse_angle 400
IceTeam 88:e4de39dd3e2e 53 #define deccel_angle 400
IceTeam 81:e7b03e81b025 54
IceTeam 88:e4de39dd3e2e 55 #define accel_dista 2000
IceTeam 88:e4de39dd3e2e 56 #define vitesse_dista 2000
IceTeam 88:e4de39dd3e2e 57 #define deccel_dista 2000
IceTeam 81:e7b03e81b025 58
IceTeam 81:e7b03e81b025 59 #define waiting_time 1
IceTeam 81:e7b03e81b025 60 #define GAUCHE 1
IceTeam 81:e7b03e81b025 61 #define DROITE -1
IceTeam 81:e7b03e81b025 62
IceTeam 83:714fa414b2bf 63 #define VERT 1
IceTeam 83:714fa414b2bf 64 #define VIOLET 2
IceTeam 83:714fa414b2bf 65 #define NOIR 3
IceTeam 83:714fa414b2bf 66
IceTeam 81:e7b03e81b025 67 #endif