Robot secondaire
Dependencies: RoboClaw mbed StepperMotor
Fork of RoboClaw by
Functions/defines.h@77:f19cc7f81f2a, 2016-05-05 (annotated)
- Committer:
- sype
- Date:
- Thu May 05 08:46:08 2016 +0000
- Revision:
- 77:f19cc7f81f2a
- Parent:
- 51:1056dd73a748
commit homologation
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sype | 51:1056dd73a748 | 1 | #ifndef DEFINES_H |
sype | 51:1056dd73a748 | 2 | #define DEFINES_H |
sype | 51:1056dd73a748 | 3 | |
sype | 77:f19cc7f81f2a | 4 | #include "DefinesSharps.h" |
sype | 51:1056dd73a748 | 5 | #include "mbed.h" |
sype | 51:1056dd73a748 | 6 | #include "../RoboClaw/RoboClaw.h" |
sype | 51:1056dd73a748 | 7 | #include "../Odometry/Odometry.h" |
sype | 51:1056dd73a748 | 8 | #include "../StepperMotor/Stepper.h" |
sype | 51:1056dd73a748 | 9 | #include "Map/map.h" |
sype | 51:1056dd73a748 | 10 | #include "AX12.h" |
sype | 51:1056dd73a748 | 11 | |
sype | 51:1056dd73a748 | 12 | #define SEUIL 0.25 |
sype | 51:1056dd73a748 | 13 | #define VERT 1 |
sype | 51:1056dd73a748 | 14 | #define VIOLET 2 |
sype | 51:1056dd73a748 | 15 | #define ATTENTE 0 |
sype | 51:1056dd73a748 | 16 | #define GO 1 |
sype | 51:1056dd73a748 | 17 | #define STOP 2 |
sype | 51:1056dd73a748 | 18 | #define ADR 0x80 |
sype | 51:1056dd73a748 | 19 | #define dt 10000 |
sype | 51:1056dd73a748 | 20 | #define HAUT 1 |
sype | 51:1056dd73a748 | 21 | #define BAS 0 |
sype | 51:1056dd73a748 | 22 | |
sype | 51:1056dd73a748 | 23 | extern Serial logger; |
sype | 51:1056dd73a748 | 24 | extern RoboClaw roboclaw; |
sype | 51:1056dd73a748 | 25 | extern DigitalOut bleu; |
sype | 51:1056dd73a748 | 26 | extern DigitalOut blanc; |
sype | 51:1056dd73a748 | 27 | extern DigitalOut rouge; |
sype | 51:1056dd73a748 | 28 | extern Stepper RMot; |
sype | 51:1056dd73a748 | 29 | extern Stepper ZMot; |
sype | 51:1056dd73a748 | 30 | extern Stepper LMot; |
sype | 51:1056dd73a748 | 31 | extern AnalogIn capt1; |
sype | 51:1056dd73a748 | 32 | extern AnalogIn capt2; |
sype | 51:1056dd73a748 | 33 | extern AnalogIn capt3; |
sype | 51:1056dd73a748 | 34 | extern InterruptIn mybutton; |
sype | 51:1056dd73a748 | 35 | extern InterruptIn EndR; |
sype | 51:1056dd73a748 | 36 | extern InterruptIn EndZ; |
sype | 51:1056dd73a748 | 37 | extern InterruptIn EndL; |
sype | 51:1056dd73a748 | 38 | //extern AX12 left_hand; |
sype | 51:1056dd73a748 | 39 | //extern AX12 right_hand; |
sype | 51:1056dd73a748 | 40 | extern Odometry odo; |
sype | 51:1056dd73a748 | 41 | extern Ticker ticker; |
sype | 51:1056dd73a748 | 42 | extern DigitalIn CAMP; |
sype | 51:1056dd73a748 | 43 | extern DigitalIn START; |
sype | 51:1056dd73a748 | 44 | extern DigitalOut LEDR; |
sype | 51:1056dd73a748 | 45 | extern DigitalOut LEDV; |
sype | 51:1056dd73a748 | 46 | extern DigitalIn button; |
sype | 51:1056dd73a748 | 47 | extern BusOut drapeau; |
sype | 51:1056dd73a748 | 48 | extern DigitalIn EnR; |
sype | 51:1056dd73a748 | 49 | extern DigitalIn EnZ; |
sype | 51:1056dd73a748 | 50 | extern DigitalIn EnL; |
sype | 51:1056dd73a748 | 51 | |
sype | 51:1056dd73a748 | 52 | |
sype | 51:1056dd73a748 | 53 | extern int SIMON_i, SIMON_state, SCouleur, SStart, SSchema; |
sype | 77:f19cc7f81f2a | 54 | extern bool SIMON_EL, SIMON_EZ, SIMON_ER; |
sype | 51:1056dd73a748 | 55 | |
sype | 51:1056dd73a748 | 56 | #endif |