ARES
/
Timer
Time is good
Fork of Robot2016_2-0 by
entete.h@96:1e91cac784fe, 2016-05-06 (annotated)
- Committer:
- IceTeam
- Date:
- Fri May 06 21:21:49 2016 +0000
- Revision:
- 96:1e91cac784fe
- Parent:
- 94:86b9bd6d5c28
- Child:
- 97:42167cfeb8d7
Coucou vers ordi de simon
Who changed what in which revision?
User | Revision | Line number | New 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 | 96:1e91cac784fe | 50 | #define DIAMETRE_ROUE_GAUCHE 61.7 |
IceTeam | 96:1e91cac784fe | 51 | #define DIAMETRE_ROUE_DROITE 61.8 |
IceTeam | 89:46730de0d013 | 52 | |
IceTeam | 94:86b9bd6d5c28 | 53 | #define accel_angle 3200 |
IceTeam | 94:86b9bd6d5c28 | 54 | #define vitesse_angle 3200 |
IceTeam | 94:86b9bd6d5c28 | 55 | #define deccel_angle 3200 |
IceTeam | 81:e7b03e81b025 | 56 | |
IceTeam | 88:e4de39dd3e2e | 57 | #define accel_dista 2000 |
IceTeam | 88:e4de39dd3e2e | 58 | #define vitesse_dista 2000 |
IceTeam | 88:e4de39dd3e2e | 59 | #define deccel_dista 2000 |
IceTeam | 81:e7b03e81b025 | 60 | |
IceTeam | 81:e7b03e81b025 | 61 | #define waiting_time 1 |
IceTeam | 81:e7b03e81b025 | 62 | #define GAUCHE 1 |
IceTeam | 81:e7b03e81b025 | 63 | #define DROITE -1 |
IceTeam | 81:e7b03e81b025 | 64 | |
IceTeam | 83:714fa414b2bf | 65 | #define VERT 1 |
IceTeam | 83:714fa414b2bf | 66 | #define VIOLET 2 |
IceTeam | 83:714fa414b2bf | 67 | #define NOIR 3 |
IceTeam | 83:714fa414b2bf | 68 | |
IceTeam | 81:e7b03e81b025 | 69 | #endif |