Fork de Timer après le match à 61 points

Dependencies:   RoboClaw mbed

Fork of Timer by ARES

tests.cpp

Committer:
IceTeam
Date:
2016-05-05
Revision:
81:e7b03e81b025
Child:
84:b54822c913b0

File content as of revision 81:e7b03e81b025:

#include "entete.h"

void wait_start() {
    while (start == 1);
    while (start == 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);    
}