wip
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user