|
@@ -24,6 +24,19 @@ void pushSwitchDelayed(int coverDelay, int pusherDelay) {
|
|
|
servoSwitchPusher.write(0);
|
|
|
}
|
|
|
|
|
|
+//Push with a pause before the switch is pushed
|
|
|
+void pushWithHesitation(){
|
|
|
+ servoCoverPusher.write(90);
|
|
|
+ delay(1000);
|
|
|
+ servoSwitchPusher.write(90 + servoAlignmentOffset);
|
|
|
+ delay(2000);
|
|
|
+ servoSwitchPusher.write(130 + servoAlignmentOffset);
|
|
|
+ delay(2500);
|
|
|
+ servoCoverPusher.write(0);
|
|
|
+ servoSwitchPusher.write(0);
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
//Set the pusher servo to arm installation position
|
|
|
void setSwitchToInstallPosition(){
|
|
|
servoSwitchPusher.write(125 + servoAlignmentOffset);
|