Time is good

Dependencies:   RoboClaw mbed

Fork of Robot2016_2-0 by ARES

Committer:
IceTeam
Date:
Tue May 31 14:24:48 2016 +0000
Revision:
100:7c7174048302
Parent:
84:b54822c913b0
Bug

Who changed what in which revision?

UserRevisionLine numberNew contents of line
IceTeam 83:714fa414b2bf 1 #include "entete.h"
IceTeam 83:714fa414b2bf 2
IceTeam 83:714fa414b2bf 3 void changeCamp(void)
IceTeam 83:714fa414b2bf 4 {
IceTeam 83:714fa414b2bf 5 if(SCouleur==VERT) {
IceTeam 83:714fa414b2bf 6 SCouleur = VIOLET;
IceTeam 83:714fa414b2bf 7 LEDR = 1;
IceTeam 83:714fa414b2bf 8 LEDV = 0;
IceTeam 84:b54822c913b0 9 }
IceTeam 84:b54822c913b0 10 else if (SCouleur == VIOLET) {
IceTeam 83:714fa414b2bf 11 SCouleur = NOIR;
IceTeam 83:714fa414b2bf 12 LEDV = 0;
IceTeam 83:714fa414b2bf 13 LEDR = 0;
IceTeam 83:714fa414b2bf 14 }
IceTeam 83:714fa414b2bf 15 else {
IceTeam 84:b54822c913b0 16 SCouleur = VERT;
IceTeam 83:714fa414b2bf 17 LEDV = 1;
IceTeam 83:714fa414b2bf 18 LEDR = 0;
IceTeam 83:714fa414b2bf 19 }
IceTeam 83:714fa414b2bf 20 }
IceTeam 83:714fa414b2bf 21
IceTeam 83:714fa414b2bf 22 void depart(void)
IceTeam 83:714fa414b2bf 23 {
IceTeam 84:b54822c913b0 24 while (start == 0) {
IceTeam 83:714fa414b2bf 25 if(CAMP==0) {
IceTeam 83:714fa414b2bf 26 changeCamp();
IceTeam 83:714fa414b2bf 27 }
IceTeam 83:714fa414b2bf 28 wait_ms(100);
IceTeam 83:714fa414b2bf 29 }
IceTeam 83:714fa414b2bf 30 }