Voili voilou

Dependencies:   RoboClaw StepperMotor mbed

Fork of Robot2016_2-0 by ARES

Functions/func.h

Committer:
sype
Date:
2016-04-13
Revision:
44:b1fd7489369f
Parent:
41:b5a2fbc20beb
Child:
45:b53ae54062c6

File content as of revision 44:b1fd7489369f:

#ifndef FUNC_H
#define 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

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 int i, state;
extern bool EL, EZ, ER;

void ELpressed(void);
void ELunpressed(void);
void EZpressed(void);
void EZunpressed(void);
void ERpressed(void);
void ERunpressed(void);

void pressed(void);
void unpressed(void);
void JPO(void);

void init_ax12(void);
void init_interrupt(void);
void goHome(void);
void checkAround(void);

#endif