Skip to content

Commit

Permalink
Iniciei um cod para rampa, e o que já estava na função rampa() eu com…
Browse files Browse the repository at this point in the history
…entei.
  • Loading branch information
PabloHenriqueO committed Oct 22, 2018
1 parent cd742be commit 6d2f35d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions teste/Estrategia.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,13 @@ void Estrategia::girar_direito_verde(){
}

void Estrategia::rampa(){
if(sensor.branco_preto_branco_branco()){
robo.acionarMotores(30,-30);
delay(250);

while((!robo.fimDeCurso1Pressionado()) && (!robo.fimDeCurso2Pressionado()) ) {
robo.acionarMotores(-30,-30);
}
/*if(sensor.branco_preto_branco_branco()){
robo.acionarMotores(65, 50);
}
else if(sensor.branco_branco_preto_branco()){
Expand All @@ -230,5 +236,5 @@ void Estrategia::rampa(){
}
else{
robo.acionarMotores(55, 55);
}
}*/
}

0 comments on commit 6d2f35d

Please sign in to comment.