Closed SANTENO closed 2 years ago
//manual open:
while (digitalRead(BTN_UP) == 0){
Maschinenstatus = 3;
manualmode = HIGH;
digitalWrite(REL1,LOW); // Power Supply einschalten
delay(BTNTIME);
}
geändert in:
//manual open:
while (digitalRead(BTN_UP) == 0){
Maschinenstatus = 3;
manualmode = HIGH;
digitalWrite(REL1,LOW); // Power Supply einschalten
delay(BTNTIME);
countdown = 120*60; // Isuse#7 countdown reset - for use in mode 4
}
//automatic open:
if (robigone == HIGH){
Maschinenstatus = 3; //Trigger falls ein Robi wegfährt
digitalWrite(REL1,LOW); // Power Supply einschalten
delay(BTNTIME);
countdown = 120; // countdown reset - for use in mode 4
}
break;
in readparked setting zum Ende der Statemachine jeweils einen reset des countdowns einfügen: Changes the countdown time when one robot leaves the house after manually opening. if (robiWisch.readparked()== LOW) { robigone= HIGH; countdown = 120; //Issue#7 }
Also added the countdown for display to appear in top line for > 120.. Below 120, the bar shows up..
When lid is opened by single manual press up- the lid shall close automatically after about 10 minutes if no robot departs in this time.