Time is good

Dependencies:   RoboClaw mbed

Fork of Robot2016_2-0 by ARES

entete.h

Committer:
IceTeam
Date:
2016-05-06
Revision:
92:f09f55aa992b
Parent:
90:78d2c1527c95
Child:
93:c0b040954eac

File content as of revision 92:f09f55aa992b:

#ifndef FONCTIONS_H
#define FONCTIONS_H

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

/* Classes du projet : 
AX12
Roboclaw
*/

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 DigitalIn button;
extern int SCouleur;
extern float R_SEUIL_SHARP;

// Fonctions main.cpp
void Sharps();
void endFonc ();
void init();

//vFonctions deplacement.cpp
void GotoThet (float timer, int signe);
void GotoDist (float timer);
void GotoArr(float timer);
void GotoThet(double theta_);

// 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 ENTRAXE 243.8

#define accel_angle 400
#define vitesse_angle 400
#define deccel_angle 400

#define accel_dista 2000
#define vitesse_dista 2000
#define deccel_dista 2000

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

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

#endif