ARES
/
Timer
Time is good
Fork of Robot2016_2-0 by
entete.h
- Committer:
- IceTeam
- Date:
- 2016-05-31
- Revision:
- 100:7c7174048302
- Parent:
- 98:2426d699362b
File content as of revision 100:7c7174048302:
#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