Time is good

Dependencies:   RoboClaw mbed

Fork of Robot2016_2-0 by ARES

couleur.cpp

Committer:
IceTeam
Date:
2016-05-31
Revision:
100:7c7174048302
Parent:
84:b54822c913b0

File content as of revision 100:7c7174048302:

#include "entete.h"

void changeCamp(void)
{
    if(SCouleur==VERT) {
        SCouleur = VIOLET;
        LEDR = 1;
        LEDV = 0;
    } 
    else if (SCouleur == VIOLET) {
        SCouleur = NOIR;
        LEDV = 0;
        LEDR = 0;
    }
    else {
        SCouleur = VERT;
        LEDV = 1;
        LEDR = 0;     
    }
}

void depart(void)
{
    while (start == 0) {
        if(CAMP==0) {
            changeCamp();
        }
        wait_ms(100);
    }
}