Time is good

Dependencies:   RoboClaw mbed

Fork of Robot2016_2-0 by ARES

entete.h

Committer:
Jagang
Date:
2016-05-06
Revision:
98:2426d699362b
Parent:
97:42167cfeb8d7

File content as of revision 98:2426d699362b:

#ifndef FONCTIONS_H
#define FONCTIONS_H

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

#define PI 3.14159f

#define ENTRAXE 243.8
#define DIAMETRE_ROUE_GAUCHE 61.7
#define DIAMETRE_ROUE_DROITE 61.8

#define accel_angle 3200
#define vitesse_angle 3200
#define deccel_angle 3200

#define accel_dista 4000
#define vitesse_dista 4000
#define deccel_dista 4000

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

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

/* Classes du projet : 
AX12
Roboclaw
StepperMotor
AX12
*/

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_globals();

//vFonctions deplacement.cpp
void GotoDist (float timer, int acc=accel_dista, int speed=vitesse_dista, int decc=deccel_dista);
void GotoArr(float timer, int acc=accel_dista, int speed=vitesse_dista, int decc=deccel_dista);
void GotoThet(double theta_);
void GotoDistPos(double distance);

// Fonctions test.cpp

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

#endif