12345678910111213141516171819202122232425262728293031323334353637383940 |
- void pushSwitchNow() {
- pushSwitchDelayed(270, 270);
- }
- void pushSwitchDelayed(int coverDelay, int pusherDelay) {
- servoCoverPusher.write(90);
- delay(coverDelay);
- servoSwitchPusher.write(130 + SERVO_ALIGNMENT_OFFSET);
- delay(pusherDelay);
- servoCoverPusher.write(0);
- servoSwitchPusher.write(0);
- }
- void pushWithHesitation(){
- servoCoverPusher.write(90);
- delay(1000);
- servoSwitchPusher.write(90 + SERVO_ALIGNMENT_OFFSET);
- delay(2000);
- servoSwitchPusher.write(130 + SERVO_ALIGNMENT_OFFSET);
- delay(1000);
- servoCoverPusher.write(0);
- servoSwitchPusher.write(0);
- }
- void setSwitchToInstallPosition(){
- servoSwitchPusher.write(125 + SERVO_ALIGNMENT_OFFSET);
- }
|