Time is good

Dependencies:   RoboClaw mbed

Fork of Robot2016_2-0 by ARES

tests.cpp

Committer:
IceTeam
Date:
2016-05-06
Revision:
84:b54822c913b0
Parent:
81:e7b03e81b025
Child:
93:c0b040954eac

File content as of revision 84:b54822c913b0:

#include "entete.h"

void wait_start() {
    while (CAMP != 0) ;
}

void TestDist3(float start, float pas) {
    GotoDist(start);
    wait_start();
    GotoDist(start + pas);
    wait_start();
    GotoDist(start + 2 * pas);    
}  

void TestThet3(float start, float pas) {
    GotoThet(start, GAUCHE);
    wait_start();
    GotoThet(start + pas, GAUCHE);
    wait_start();
    GotoThet(start + 2 * pas, GAUCHE);    
}  

void compareThet(float start) {
    GotoThet(start, DROITE);
    wait_start();
    GotoThet(start, GAUCHE);    
}