Voili voilou

Dependencies:   RoboClaw StepperMotor mbed

Fork of Robot2016_2-0 by ARES

Functions/func.h

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

File content as of revision 41:b5a2fbc20beb:

#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 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 goHome(void);
void checkAround(void);

#endif