123456789101112131415161718192021222324252627282930 |
- const int servoAlignmentOffset = 0;
- void pushSwitchNow() {
- pushSwitchDelayed(1000, 1000);
- }
- void pushSwitchDelayed(int coverDelay, int pusherDelay) {
- servoCoverPusher.write(90);
- delay(coverDelay);
- servoSwitchPusher.write(130 + servoAlignmentOffset);
- delay(pusherDelay);
- servoCoverPusher.write(0);
- servoSwitchPusher.write(0);
- }
- void setSwitchToInstallPosition(){
- servoSwitchPusher.write(125 + servoAlignmentOffset);
- }
|