This commit is contained in:
andrea
2026-05-05 22:47:18 +02:00
parent c43dc8e9af
commit e496a64d57
3 changed files with 76 additions and 5 deletions

View File

@@ -245,7 +245,7 @@ void managePulsanti(void){
}
void manageCiclo(void){
motMov_st m1,m2,m3,m4;
switch(stCiclo){
case omchiuso:
if(stPulsanti&P1START){
@@ -352,7 +352,8 @@ void manageCiclo(void){
case omapertura0:
if(rtCiclo>=30){//doppo 3 secondi
stBuz=bzmoving;
if((m1ap()==motStop)&&(m2ap()==motStop)&&(m3ap()==motStop)&&(m4ap()==motStop)){
m1=m1ap();m2=m2ap();m3=m3ap();m4=m4ap();
if((m1==motStop)&&(m2==motStop)&&(m3==motStop)&&(m4==motStop)){
stBuz=bzoff;
stCiclo=omaperto;
}