Robot secondaire

Dependencies:   RoboClaw mbed StepperMotor

Fork of RoboClaw by Simon Emarre

Functions/defines.h

Committer:
IceTeam
Date:
2016-05-05
Revision:
75:195dd2bb13a3
Parent:
59:94b44c4a8a5a
Child:
76:a862cb10559c

File content as of revision 75:195dd2bb13a3:

#ifndef DEFINES_H
#define DEFINES_H

/* Dernier Changement : Romain 19h23
Inclu dans main.cpp Map/map.h func.h */

#include "mbed.h"
#include "../RoboClaw/RoboClaw.h"
#include "../Odometry/Odometry.h"
#include "../StepperMotor/Stepper.h"
//#include "Map/map.h"
#include "AX12.h"

#define SEUIL 0.25
#define VERT 1
#define VIOLET 2
#define ATTENTE 0
#define GO 1
#define STOP 2
#define ADR 0x80
#define dt 10000
#define HAUT 1
#define BAS 0
#define DELAY 0.007

extern bool front_Sharp_activated;
extern Serial logger;
extern RoboClaw roboclaw;
extern DigitalOut bleu;
extern DigitalOut blanc;
extern DigitalOut rouge;
extern Stepper RMot;
extern Stepper ZMot;
extern Stepper LMot;
extern AnalogIn capt1;
extern AnalogIn capt2;
extern AnalogIn capt3;
extern InterruptIn mybutton;
extern InterruptIn EndR;
extern InterruptIn EndZ;
extern InterruptIn EndL;
//extern AX12 left_hand;
//extern AX12 right_hand;
extern Odometry odo;
extern Ticker ticker;
extern DigitalIn CAMP;
extern DigitalIn START;
extern DigitalOut LEDR;
extern DigitalOut LEDV;
extern DigitalIn button;
extern BusOut drapeau;
extern DigitalIn EnR;
extern DigitalIn EnZ;
extern DigitalIn EnL;


extern int SIMON_i, SIMON_state, SCouleur, SStart, SSchema;
extern bool SIMON_EL, SIMON_EZ, SIMON_ER, SGauche, SDevant, SDroite;

#endif