Fork de Timer après le match à 61 points

Dependencies:   RoboClaw mbed

Fork of Timer by ARES

tests.cpp

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

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