Romain Ame
/
Timer71pt
Fork de Timer après le match à 61 points
Fork of Timer by
Diff: main.cpp
- Revision:
- 83:714fa414b2bf
- Parent:
- 82:07e13071dd7b
- Child:
- 84:b54822c913b0
diff -r 07e13071dd7b -r 714fa414b2bf main.cpp --- a/main.cpp Fri May 06 07:08:44 2016 +0000 +++ b/main.cpp Fri May 06 09:20:49 2016 +0200 @@ -1,5 +1,11 @@ #include "entete.h" +DigitalIn CAMP(PA_15); +DigitalIn START(PB_7); +DigitalOut LEDR(PC_2); +DigitalOut LEDV(PC_3); +int SCouleur = VERT; + BusOut drapeau (PC_8, PC_6, PC_5); RoboClaw roboclaw(ADR, 460800, PA_11, PA_12); AnalogIn Rcapt1(PA_4); @@ -16,9 +22,17 @@ { Ticker ticker; ticker.attach(&Sharps, 0.01); - while (start == 0) ; - GotoDist(5.5); - + depart(); + if (SCouleur == VERT) { + GotoDist(5.5); + } + else if (SCouleur == VIOLET) { + ; + } + else { + ; + } + while(1); }