ARES
/
Timer
Time is good
Fork of Robot2016_2-0 by
tests.cpp@81:e7b03e81b025, 2016-05-05 (annotated)
- Committer:
- IceTeam
- Date:
- Thu May 05 18:17:08 2016 +0000
- Revision:
- 81:e7b03e81b025
- Child:
- 84:b54822c913b0
Programme de test;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
IceTeam | 81:e7b03e81b025 | 1 | #include "entete.h" |
IceTeam | 81:e7b03e81b025 | 2 | |
IceTeam | 81:e7b03e81b025 | 3 | void wait_start() { |
IceTeam | 81:e7b03e81b025 | 4 | while (start == 1); |
IceTeam | 81:e7b03e81b025 | 5 | while (start == 0); |
IceTeam | 81:e7b03e81b025 | 6 | } |
IceTeam | 81:e7b03e81b025 | 7 | |
IceTeam | 81:e7b03e81b025 | 8 | void TestDist3(float start, float pas) { |
IceTeam | 81:e7b03e81b025 | 9 | GotoDist(start); |
IceTeam | 81:e7b03e81b025 | 10 | wait_start(); |
IceTeam | 81:e7b03e81b025 | 11 | GotoDist(start + pas); |
IceTeam | 81:e7b03e81b025 | 12 | wait_start(); |
IceTeam | 81:e7b03e81b025 | 13 | GotoDist(start + 2 * pas); |
IceTeam | 81:e7b03e81b025 | 14 | } |
IceTeam | 81:e7b03e81b025 | 15 | |
IceTeam | 81:e7b03e81b025 | 16 | void TestThet3(float start, float pas) { |
IceTeam | 81:e7b03e81b025 | 17 | GotoThet(start, GAUCHE); |
IceTeam | 81:e7b03e81b025 | 18 | wait_start(); |
IceTeam | 81:e7b03e81b025 | 19 | GotoThet(start + pas, GAUCHE); |
IceTeam | 81:e7b03e81b025 | 20 | wait_start(); |
IceTeam | 81:e7b03e81b025 | 21 | GotoThet(start + 2 * pas, GAUCHE); |
IceTeam | 81:e7b03e81b025 | 22 | } |
IceTeam | 81:e7b03e81b025 | 23 | |
IceTeam | 81:e7b03e81b025 | 24 | void compareThet(float start) { |
IceTeam | 81:e7b03e81b025 | 25 | GotoThet(start, DROITE); |
IceTeam | 81:e7b03e81b025 | 26 | wait_start(); |
IceTeam | 81:e7b03e81b025 | 27 | GotoThet(start, GAUCHE); |
IceTeam | 81:e7b03e81b025 | 28 | } |