Time is good

Dependencies:   RoboClaw mbed

Fork of Robot2016_2-0 by ARES

entete.h

Committer:
IceTeam
Date:
2016-05-06
Revision:
83:714fa414b2bf
Parent:
82:07e13071dd7b
Child:
84:b54822c913b0

File content as of revision 83:714fa414b2bf:

#ifndef FONCTIONS_H
#define FONCTIONS_H

#include "RoboClaw/RoboClaw.h"
#include "mbed.h"

extern BusOut drapeau;
extern RoboClaw roboclaw;
extern AnalogIn Rcapt1;
extern int RvalRcapt1;
extern AnalogIn Rcapt2;
extern int RvalRcapt2;
extern AnalogIn Rcapt3;
extern int RvalRcapt3;
extern int Ravance;
extern DigitalIn start;

extern DigitalIn CAMP;
extern DigitalIn START;
extern DigitalOut LEDR;
extern DigitalOut LEDV;
extern int SCouleur;

// Fonctions main.cpp
void Sharps();
void GotoThet (float timer, int signe);
void GotoDist (float timer);

// Fonctions test.cpp
void wait_start();
void TestDist3(float start, float pas);
void TestThet3(float start, float pas);
void compareThet(float start);

// Fonctions couleur.cpp
void depart(void);
void changeCamp(void);

#define ADR 0x80
#define accel_angle 12000
#define vitesse_angle 10000
#define deccel_angle 12000

#define accel_dista 4096
#define vitesse_dista 4096
#define deccel_dista 4096

#define waiting_time 1
#define R_SEUIL_SHARP 1
#define GAUCHE 1
#define DROITE -1

#define VERT 1
#define VIOLET 2
#define NOIR 3

#endif