Romain Ame
/
Stressed
coucou
Fork of Robot2016_2-0 by
Functions/defines.h@75:195dd2bb13a3, 2016-05-05 (annotated)
- Committer:
- IceTeam
- Date:
- Thu May 05 04:36:59 2016 +0000
- Revision:
- 75:195dd2bb13a3
- Parent:
- 59:94b44c4a8a5a
Test 1;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sype | 52:1056dd73a748 | 1 | #ifndef DEFINES_H |
sype | 52:1056dd73a748 | 2 | #define DEFINES_H |
sype | 52:1056dd73a748 | 3 | |
IceTeam | 56:4fd9636dfb36 | 4 | /* Dernier Changement : Romain 19h23 |
IceTeam | 56:4fd9636dfb36 | 5 | Inclu dans main.cpp Map/map.h func.h */ |
IceTeam | 56:4fd9636dfb36 | 6 | |
sype | 52:1056dd73a748 | 7 | #include "mbed.h" |
sype | 52:1056dd73a748 | 8 | #include "../RoboClaw/RoboClaw.h" |
sype | 52:1056dd73a748 | 9 | #include "../Odometry/Odometry.h" |
sype | 52:1056dd73a748 | 10 | #include "../StepperMotor/Stepper.h" |
IceTeam | 75:195dd2bb13a3 | 11 | //#include "Map/map.h" |
sype | 52:1056dd73a748 | 12 | #include "AX12.h" |
sype | 52:1056dd73a748 | 13 | |
sype | 52:1056dd73a748 | 14 | #define SEUIL 0.25 |
sype | 52:1056dd73a748 | 15 | #define VERT 1 |
sype | 52:1056dd73a748 | 16 | #define VIOLET 2 |
sype | 52:1056dd73a748 | 17 | #define ATTENTE 0 |
sype | 52:1056dd73a748 | 18 | #define GO 1 |
sype | 52:1056dd73a748 | 19 | #define STOP 2 |
sype | 52:1056dd73a748 | 20 | #define ADR 0x80 |
sype | 52:1056dd73a748 | 21 | #define dt 10000 |
sype | 52:1056dd73a748 | 22 | #define HAUT 1 |
sype | 52:1056dd73a748 | 23 | #define BAS 0 |
Jagang | 58:02dc8328975a | 24 | #define DELAY 0.007 |
sype | 52:1056dd73a748 | 25 | |
IceTeam | 75:195dd2bb13a3 | 26 | extern bool front_Sharp_activated; |
sype | 52:1056dd73a748 | 27 | extern Serial logger; |
sype | 52:1056dd73a748 | 28 | extern RoboClaw roboclaw; |
sype | 52:1056dd73a748 | 29 | extern DigitalOut bleu; |
sype | 52:1056dd73a748 | 30 | extern DigitalOut blanc; |
sype | 52:1056dd73a748 | 31 | extern DigitalOut rouge; |
sype | 52:1056dd73a748 | 32 | extern Stepper RMot; |
sype | 52:1056dd73a748 | 33 | extern Stepper ZMot; |
sype | 52:1056dd73a748 | 34 | extern Stepper LMot; |
sype | 52:1056dd73a748 | 35 | extern AnalogIn capt1; |
sype | 52:1056dd73a748 | 36 | extern AnalogIn capt2; |
sype | 52:1056dd73a748 | 37 | extern AnalogIn capt3; |
sype | 52:1056dd73a748 | 38 | extern InterruptIn mybutton; |
sype | 52:1056dd73a748 | 39 | extern InterruptIn EndR; |
sype | 52:1056dd73a748 | 40 | extern InterruptIn EndZ; |
sype | 52:1056dd73a748 | 41 | extern InterruptIn EndL; |
sype | 52:1056dd73a748 | 42 | //extern AX12 left_hand; |
sype | 52:1056dd73a748 | 43 | //extern AX12 right_hand; |
sype | 52:1056dd73a748 | 44 | extern Odometry odo; |
sype | 52:1056dd73a748 | 45 | extern Ticker ticker; |
sype | 52:1056dd73a748 | 46 | extern DigitalIn CAMP; |
sype | 52:1056dd73a748 | 47 | extern DigitalIn START; |
sype | 52:1056dd73a748 | 48 | extern DigitalOut LEDR; |
sype | 52:1056dd73a748 | 49 | extern DigitalOut LEDV; |
sype | 52:1056dd73a748 | 50 | extern DigitalIn button; |
sype | 52:1056dd73a748 | 51 | extern BusOut drapeau; |
sype | 52:1056dd73a748 | 52 | extern DigitalIn EnR; |
sype | 52:1056dd73a748 | 53 | extern DigitalIn EnZ; |
sype | 52:1056dd73a748 | 54 | extern DigitalIn EnL; |
sype | 52:1056dd73a748 | 55 | |
sype | 52:1056dd73a748 | 56 | |
sype | 52:1056dd73a748 | 57 | extern int SIMON_i, SIMON_state, SCouleur, SStart, SSchema; |
sype | 52:1056dd73a748 | 58 | extern bool SIMON_EL, SIMON_EZ, SIMON_ER, SGauche, SDevant, SDroite; |
sype | 52:1056dd73a748 | 59 | |
sype | 52:1056dd73a748 | 60 | #endif |