Projeto Mecatrônico
/
ProjetoMecatronico
testando
Diff: main_PM.cpp
- Revision:
- 50:cd54c98b6ef1
- Parent:
- 47:0d9c10a9f87d
- Child:
- 51:68b9c2b6550d
--- a/main_PM.cpp Thu May 28 22:09:17 2020 +0000 +++ b/main_PM.cpp Thu May 28 22:23:29 2020 +0000 @@ -79,8 +79,7 @@ if (t_6 == 0)return('6'); if (t_7 == 0)return('7'); if (t_8 == 0)return('8'); - if (t_9 == 0)return('9'); - return('nada');} + if (t_9 == 0)return('9');} //funcao de movimentacao dos motores void mov_x_menos(){for(int i = 0; i < 4; i++){eixox = antihor[i];wait(t_motor);coord_x -= (5.625*5/32)/360;est_x = 0;}} @@ -143,7 +142,9 @@ lcd.printf("A - proximo"); interrupcao.fall(&emergencia); while(1) { - tecla = pega_tecla(); + tecla = pega_tecla(); + printf("\n%s",status_tela); + printf("\n%c",tecla); if(tecla == 'A' && status_tela == "zeramento"){ zeramento(); status_tela = "inicio";