Time is good

Dependencies:   RoboClaw mbed

Fork of Robot2016_2-0 by ARES

entete.h

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

File content as of revision 82:07e13071dd7b:

#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;

// 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);

#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

#endif