Romain Ame
/
Timer71pt
Fork de Timer après le match à 61 points
Fork of Timer by
entete.h@92:adb71eafef57, 2016-05-06 (annotated)
- Committer:
- IceTeam
- Date:
- Fri May 06 15:18:09 2016 +0000
- Revision:
- 92:adb71eafef57
- Parent:
- 90:78d2c1527c95
Petit bug fix dans le temps du dernier GotoDist;
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 | 81:e7b03e81b025 | 7 | extern BusOut drapeau; |
IceTeam | 81:e7b03e81b025 | 8 | extern RoboClaw roboclaw; |
IceTeam | 81:e7b03e81b025 | 9 | extern AnalogIn Rcapt1; |
IceTeam | 81:e7b03e81b025 | 10 | extern int RvalRcapt1; |
IceTeam | 81:e7b03e81b025 | 11 | extern AnalogIn Rcapt2; |
IceTeam | 81:e7b03e81b025 | 12 | extern int RvalRcapt2; |
IceTeam | 81:e7b03e81b025 | 13 | extern AnalogIn Rcapt3; |
IceTeam | 81:e7b03e81b025 | 14 | extern int RvalRcapt3; |
IceTeam | 81:e7b03e81b025 | 15 | extern int Ravance; |
IceTeam | 81:e7b03e81b025 | 16 | extern DigitalIn start; |
IceTeam | 81:e7b03e81b025 | 17 | |
IceTeam | 83:714fa414b2bf | 18 | extern DigitalIn CAMP; |
IceTeam | 83:714fa414b2bf | 19 | extern DigitalIn START; |
IceTeam | 83:714fa414b2bf | 20 | extern DigitalOut LEDR; |
IceTeam | 83:714fa414b2bf | 21 | extern DigitalOut LEDV; |
IceTeam | 84:b54822c913b0 | 22 | extern DigitalIn button; |
IceTeam | 83:714fa414b2bf | 23 | extern int SCouleur; |
IceTeam | 90:78d2c1527c95 | 24 | extern float R_SEUIL_SHARP; |
IceTeam | 83:714fa414b2bf | 25 | |
IceTeam | 81:e7b03e81b025 | 26 | // Fonctions main.cpp |
IceTeam | 81:e7b03e81b025 | 27 | void Sharps(); |
IceTeam | 87:60d81ecab4f5 | 28 | void endFonc (); |
IceTeam | 87:60d81ecab4f5 | 29 | |
IceTeam | 87:60d81ecab4f5 | 30 | //vFonctions deplacement.cpp |
IceTeam | 81:e7b03e81b025 | 31 | void GotoThet (float timer, int signe); |
IceTeam | 81:e7b03e81b025 | 32 | void GotoDist (float timer); |
IceTeam | 88:e4de39dd3e2e | 33 | void GotoArr(float timer); |
IceTeam | 89:46730de0d013 | 34 | void GotoThet(double theta_); |
IceTeam | 81:e7b03e81b025 | 35 | |
IceTeam | 81:e7b03e81b025 | 36 | // Fonctions test.cpp |
IceTeam | 81:e7b03e81b025 | 37 | void wait_start(); |
IceTeam | 81:e7b03e81b025 | 38 | void TestDist3(float start, float pas); |
IceTeam | 81:e7b03e81b025 | 39 | void TestThet3(float start, float pas); |
IceTeam | 81:e7b03e81b025 | 40 | void compareThet(float start); |
IceTeam | 81:e7b03e81b025 | 41 | |
IceTeam | 83:714fa414b2bf | 42 | // Fonctions couleur.cpp |
IceTeam | 83:714fa414b2bf | 43 | void depart(void); |
IceTeam | 83:714fa414b2bf | 44 | void changeCamp(void); |
IceTeam | 83:714fa414b2bf | 45 | |
IceTeam | 89:46730de0d013 | 46 | #define ENTRAXE 243.8 |
IceTeam | 89:46730de0d013 | 47 | |
IceTeam | 89:46730de0d013 | 48 | #define accel_angle 400 |
IceTeam | 88:e4de39dd3e2e | 49 | #define vitesse_angle 400 |
IceTeam | 88:e4de39dd3e2e | 50 | #define deccel_angle 400 |
IceTeam | 81:e7b03e81b025 | 51 | |
IceTeam | 88:e4de39dd3e2e | 52 | #define accel_dista 2000 |
IceTeam | 88:e4de39dd3e2e | 53 | #define vitesse_dista 2000 |
IceTeam | 88:e4de39dd3e2e | 54 | #define deccel_dista 2000 |
IceTeam | 81:e7b03e81b025 | 55 | |
IceTeam | 81:e7b03e81b025 | 56 | #define waiting_time 1 |
IceTeam | 81:e7b03e81b025 | 57 | #define GAUCHE 1 |
IceTeam | 81:e7b03e81b025 | 58 | #define DROITE -1 |
IceTeam | 81:e7b03e81b025 | 59 | |
IceTeam | 83:714fa414b2bf | 60 | #define VERT 1 |
IceTeam | 83:714fa414b2bf | 61 | #define VIOLET 2 |
IceTeam | 83:714fa414b2bf | 62 | #define NOIR 3 |
IceTeam | 83:714fa414b2bf | 63 | |
IceTeam | 81:e7b03e81b025 | 64 | #endif |