Time is good

Dependencies:   RoboClaw mbed

Fork of Robot2016_2-0 by ARES

Committer:
IceTeam
Date:
Thu May 05 18:17:08 2016 +0000
Revision:
81:e7b03e81b025
Child:
82:07e13071dd7b
Programme de test;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
IceTeam 81:e7b03e81b025 1 #ifndef FONCTIONS_H
IceTeam 81:e7b03e81b025 2 #define FONCTIONS_H
IceTeam 81:e7b03e81b025 3
IceTeam 81:e7b03e81b025 4 #include "RoboClaw/RoboClaw.h"
IceTeam 81:e7b03e81b025 5 #include "mbed.h"
IceTeam 81:e7b03e81b025 6
IceTeam 81:e7b03e81b025 7 extern BusOut drapeau;
IceTeam 81:e7b03e81b025 8 extern RoboClaw roboclaw;
IceTeam 81:e7b03e81b025 9 extern AnalogIn Rcapt1;
IceTeam 81:e7b03e81b025 10 extern int RvalRcapt1;
IceTeam 81:e7b03e81b025 11 extern AnalogIn Rcapt2;
IceTeam 81:e7b03e81b025 12 extern int RvalRcapt2;
IceTeam 81:e7b03e81b025 13 extern AnalogIn Rcapt3;
IceTeam 81:e7b03e81b025 14 extern int RvalRcapt3;
IceTeam 81:e7b03e81b025 15 extern int Ravance;
IceTeam 81:e7b03e81b025 16 extern DigitalIn start;
IceTeam 81:e7b03e81b025 17
IceTeam 81:e7b03e81b025 18 // Fonctions main.cpp
IceTeam 81:e7b03e81b025 19 void Sharps();
IceTeam 81:e7b03e81b025 20 void GotoThet (float timer, int signe);
IceTeam 81:e7b03e81b025 21 void GotoDist (float timer);
IceTeam 81:e7b03e81b025 22
IceTeam 81:e7b03e81b025 23 // Fonctions test.cpp
IceTeam 81:e7b03e81b025 24 void wait_start();
IceTeam 81:e7b03e81b025 25 void TestDist3(float start, float pas);
IceTeam 81:e7b03e81b025 26 void TestThet3(float start, float pas);
IceTeam 81:e7b03e81b025 27 void compareThet(float start);
IceTeam 81:e7b03e81b025 28
IceTeam 81:e7b03e81b025 29 #define ADR 0x80
IceTeam 81:e7b03e81b025 30 #define accel_angle 12000
IceTeam 81:e7b03e81b025 31 #define vitesse_angle 10000
IceTeam 81:e7b03e81b025 32 #define deccel_angle 12000
IceTeam 81:e7b03e81b025 33
IceTeam 81:e7b03e81b025 34 #define accel_dista 12000
IceTeam 81:e7b03e81b025 35 #define vitesse_dista 12000
IceTeam 81:e7b03e81b025 36 #define deccel_dista 12000
IceTeam 81:e7b03e81b025 37
IceTeam 81:e7b03e81b025 38 #define waiting_time 1
IceTeam 81:e7b03e81b025 39 #define R_SEUIL_SHARP 0.3
IceTeam 81:e7b03e81b025 40 #define GAUCHE 1
IceTeam 81:e7b03e81b025 41 #define DROITE -1
IceTeam 81:e7b03e81b025 42
IceTeam 81:e7b03e81b025 43 #endif