ソースを参照

Merge pull request #6214 from thinkyhead/rc_bltouch_delay_opt

Configurable delay for BLTouch servo emulation
Scott Lahteine 8年前
コミット
1c69a155cf
25個のファイルの変更27行の追加1行の削除
  1. 3
    0
      Marlin/Conditionals_LCD.h
  2. 1
    0
      Marlin/Configuration.h
  3. 1
    1
      Marlin/Marlin_main.cpp
  4. 1
    0
      Marlin/example_configurations/Cartesio/Configuration.h
  5. 1
    0
      Marlin/example_configurations/Felix/Configuration.h
  6. 1
    0
      Marlin/example_configurations/Felix/DUAL/Configuration.h
  7. 1
    0
      Marlin/example_configurations/Hephestos/Configuration.h
  8. 1
    0
      Marlin/example_configurations/Hephestos_2/Configuration.h
  9. 1
    0
      Marlin/example_configurations/K8200/Configuration.h
  10. 1
    0
      Marlin/example_configurations/K8400/Configuration.h
  11. 1
    0
      Marlin/example_configurations/K8400/Dual-head/Configuration.h
  12. 1
    0
      Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h
  13. 1
    0
      Marlin/example_configurations/RigidBot/Configuration.h
  14. 1
    0
      Marlin/example_configurations/SCARA/Configuration.h
  15. 1
    0
      Marlin/example_configurations/TAZ4/Configuration.h
  16. 1
    0
      Marlin/example_configurations/TinyBoy2/Configuration.h
  17. 1
    0
      Marlin/example_configurations/WITBOX/Configuration.h
  18. 1
    0
      Marlin/example_configurations/adafruit/ST7565/Configuration.h
  19. 1
    0
      Marlin/example_configurations/delta/flsun_kossel_mini/Configuration.h
  20. 1
    0
      Marlin/example_configurations/delta/generic/Configuration.h
  21. 1
    0
      Marlin/example_configurations/delta/kossel_mini/Configuration.h
  22. 1
    0
      Marlin/example_configurations/delta/kossel_pro/Configuration.h
  23. 1
    0
      Marlin/example_configurations/delta/kossel_xl/Configuration.h
  24. 1
    0
      Marlin/example_configurations/makibox/Configuration.h
  25. 1
    0
      Marlin/example_configurations/tvrrug/Round2/Configuration.h

+ 3
- 0
Marlin/Conditionals_LCD.h ファイルの表示

345
     #undef DEACTIVATE_SERVOS_AFTER_MOVE
345
     #undef DEACTIVATE_SERVOS_AFTER_MOVE
346
     #undef SERVO_DELAY
346
     #undef SERVO_DELAY
347
     #define SERVO_DELAY 50
347
     #define SERVO_DELAY 50
348
+    #ifndef BLTOUCH_DELAY
349
+      #define BLTOUCH_DELAY 375
350
+    #endif
348
     #undef Z_SERVO_ANGLES
351
     #undef Z_SERVO_ANGLES
349
     #define Z_SERVO_ANGLES { BLTOUCH_DEPLOY, BLTOUCH_STOW }
352
     #define Z_SERVO_ANGLES { BLTOUCH_DEPLOY, BLTOUCH_STOW }
350
 
353
 

+ 1
- 0
Marlin/Configuration.h ファイルの表示

559
 // The BLTouch probe emulates a servo probe.
559
 // The BLTouch probe emulates a servo probe.
560
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
560
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
561
 //#define BLTOUCH
561
 //#define BLTOUCH
562
+//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
562
 
563
 
563
 // Z Servo Probe, such as an endstop switch on a rotating arm.
564
 // Z Servo Probe, such as an endstop switch on a rotating arm.
564
 //#define Z_ENDSTOP_SERVO_NR 0
565
 //#define Z_ENDSTOP_SERVO_NR 0

+ 1
- 1
Marlin/Marlin_main.cpp ファイルの表示

1990
   #if ENABLED(BLTOUCH)
1990
   #if ENABLED(BLTOUCH)
1991
     void bltouch_command(int angle) {
1991
     void bltouch_command(int angle) {
1992
       servo[Z_ENDSTOP_SERVO_NR].move(angle);  // Give the BL-Touch the command and wait
1992
       servo[Z_ENDSTOP_SERVO_NR].move(angle);  // Give the BL-Touch the command and wait
1993
-      safe_delay(375);
1993
+      safe_delay(BLTOUCH_DELAY);
1994
     }
1994
     }
1995
 
1995
 
1996
     void set_bltouch_deployed(const bool deploy) {
1996
     void set_bltouch_deployed(const bool deploy) {

+ 1
- 0
Marlin/example_configurations/Cartesio/Configuration.h ファイルの表示

559
 // The BLTouch probe emulates a servo probe.
559
 // The BLTouch probe emulates a servo probe.
560
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
560
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
561
 //#define BLTOUCH
561
 //#define BLTOUCH
562
+//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
562
 
563
 
563
 // Z Servo Probe, such as an endstop switch on a rotating arm.
564
 // Z Servo Probe, such as an endstop switch on a rotating arm.
564
 //#define Z_ENDSTOP_SERVO_NR 0
565
 //#define Z_ENDSTOP_SERVO_NR 0

+ 1
- 0
Marlin/example_configurations/Felix/Configuration.h ファイルの表示

542
 // The BLTouch probe emulates a servo probe.
542
 // The BLTouch probe emulates a servo probe.
543
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
543
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
544
 //#define BLTOUCH
544
 //#define BLTOUCH
545
+//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
545
 
546
 
546
 // Z Servo Probe, such as an endstop switch on a rotating arm.
547
 // Z Servo Probe, such as an endstop switch on a rotating arm.
547
 //#define Z_ENDSTOP_SERVO_NR 0
548
 //#define Z_ENDSTOP_SERVO_NR 0

+ 1
- 0
Marlin/example_configurations/Felix/DUAL/Configuration.h ファイルの表示

542
 // The BLTouch probe emulates a servo probe.
542
 // The BLTouch probe emulates a servo probe.
543
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
543
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
544
 //#define BLTOUCH
544
 //#define BLTOUCH
545
+//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
545
 
546
 
546
 // Z Servo Probe, such as an endstop switch on a rotating arm.
547
 // Z Servo Probe, such as an endstop switch on a rotating arm.
547
 //#define Z_ENDSTOP_SERVO_NR 0
548
 //#define Z_ENDSTOP_SERVO_NR 0

+ 1
- 0
Marlin/example_configurations/Hephestos/Configuration.h ファイルの表示

551
 // The BLTouch probe emulates a servo probe.
551
 // The BLTouch probe emulates a servo probe.
552
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
552
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
553
 //#define BLTOUCH
553
 //#define BLTOUCH
554
+//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
554
 
555
 
555
 // Z Servo Probe, such as an endstop switch on a rotating arm.
556
 // Z Servo Probe, such as an endstop switch on a rotating arm.
556
 //#define Z_ENDSTOP_SERVO_NR 0
557
 //#define Z_ENDSTOP_SERVO_NR 0

+ 1
- 0
Marlin/example_configurations/Hephestos_2/Configuration.h ファイルの表示

553
 // The BLTouch probe emulates a servo probe.
553
 // The BLTouch probe emulates a servo probe.
554
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
554
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
555
 //#define BLTOUCH
555
 //#define BLTOUCH
556
+//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
556
 
557
 
557
 // Z Servo Probe, such as an endstop switch on a rotating arm.
558
 // Z Servo Probe, such as an endstop switch on a rotating arm.
558
 //#define Z_ENDSTOP_SERVO_NR 0
559
 //#define Z_ENDSTOP_SERVO_NR 0

+ 1
- 0
Marlin/example_configurations/K8200/Configuration.h ファイルの表示

588
 // The BLTouch probe emulates a servo probe.
588
 // The BLTouch probe emulates a servo probe.
589
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
589
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
590
 //#define BLTOUCH
590
 //#define BLTOUCH
591
+//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
591
 
592
 
592
 // Z Servo Probe, such as an endstop switch on a rotating arm.
593
 // Z Servo Probe, such as an endstop switch on a rotating arm.
593
 //#define Z_ENDSTOP_SERVO_NR 0
594
 //#define Z_ENDSTOP_SERVO_NR 0

+ 1
- 0
Marlin/example_configurations/K8400/Configuration.h ファイルの表示

559
 // The BLTouch probe emulates a servo probe.
559
 // The BLTouch probe emulates a servo probe.
560
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
560
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
561
 //#define BLTOUCH
561
 //#define BLTOUCH
562
+//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
562
 
563
 
563
 // Z Servo Probe, such as an endstop switch on a rotating arm.
564
 // Z Servo Probe, such as an endstop switch on a rotating arm.
564
 //#define Z_ENDSTOP_SERVO_NR 0
565
 //#define Z_ENDSTOP_SERVO_NR 0

+ 1
- 0
Marlin/example_configurations/K8400/Dual-head/Configuration.h ファイルの表示

559
 // The BLTouch probe emulates a servo probe.
559
 // The BLTouch probe emulates a servo probe.
560
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
560
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
561
 //#define BLTOUCH
561
 //#define BLTOUCH
562
+//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
562
 
563
 
563
 // Z Servo Probe, such as an endstop switch on a rotating arm.
564
 // Z Servo Probe, such as an endstop switch on a rotating arm.
564
 //#define Z_ENDSTOP_SERVO_NR 0
565
 //#define Z_ENDSTOP_SERVO_NR 0

+ 1
- 0
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h ファイルの表示

559
 // The BLTouch probe emulates a servo probe.
559
 // The BLTouch probe emulates a servo probe.
560
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
560
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
561
 //#define BLTOUCH
561
 //#define BLTOUCH
562
+//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
562
 
563
 
563
 // Z Servo Probe, such as an endstop switch on a rotating arm.
564
 // Z Servo Probe, such as an endstop switch on a rotating arm.
564
 //#define Z_ENDSTOP_SERVO_NR 0
565
 //#define Z_ENDSTOP_SERVO_NR 0

+ 1
- 0
Marlin/example_configurations/RigidBot/Configuration.h ファイルの表示

558
 // The BLTouch probe emulates a servo probe.
558
 // The BLTouch probe emulates a servo probe.
559
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
559
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
560
 //#define BLTOUCH
560
 //#define BLTOUCH
561
+//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
561
 
562
 
562
 // Z Servo Probe, such as an endstop switch on a rotating arm.
563
 // Z Servo Probe, such as an endstop switch on a rotating arm.
563
 //#define Z_ENDSTOP_SERVO_NR 0
564
 //#define Z_ENDSTOP_SERVO_NR 0

+ 1
- 0
Marlin/example_configurations/SCARA/Configuration.h ファイルの表示

574
 // The BLTouch probe emulates a servo probe.
574
 // The BLTouch probe emulates a servo probe.
575
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
575
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
576
 //#define BLTOUCH
576
 //#define BLTOUCH
577
+//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
577
 
578
 
578
 // Z Servo Probe, such as an endstop switch on a rotating arm.
579
 // Z Servo Probe, such as an endstop switch on a rotating arm.
579
 //#define Z_ENDSTOP_SERVO_NR 0
580
 //#define Z_ENDSTOP_SERVO_NR 0

+ 1
- 0
Marlin/example_configurations/TAZ4/Configuration.h ファイルの表示

580
 // The BLTouch probe emulates a servo probe.
580
 // The BLTouch probe emulates a servo probe.
581
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
581
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
582
 //#define BLTOUCH
582
 //#define BLTOUCH
583
+//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
583
 
584
 
584
 // Z Servo Probe, such as an endstop switch on a rotating arm.
585
 // Z Servo Probe, such as an endstop switch on a rotating arm.
585
 //#define Z_ENDSTOP_SERVO_NR 0
586
 //#define Z_ENDSTOP_SERVO_NR 0

+ 1
- 0
Marlin/example_configurations/TinyBoy2/Configuration.h ファイルの表示

605
 // The BLTouch probe emulates a servo probe.
605
 // The BLTouch probe emulates a servo probe.
606
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
606
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
607
 //#define BLTOUCH
607
 //#define BLTOUCH
608
+//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
608
 
609
 
609
 // Z Servo Probe, such as an endstop switch on a rotating arm.
610
 // Z Servo Probe, such as an endstop switch on a rotating arm.
610
 //#define Z_ENDSTOP_SERVO_NR 0
611
 //#define Z_ENDSTOP_SERVO_NR 0

+ 1
- 0
Marlin/example_configurations/WITBOX/Configuration.h ファイルの表示

551
 // The BLTouch probe emulates a servo probe.
551
 // The BLTouch probe emulates a servo probe.
552
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
552
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
553
 //#define BLTOUCH
553
 //#define BLTOUCH
554
+//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
554
 
555
 
555
 // Z Servo Probe, such as an endstop switch on a rotating arm.
556
 // Z Servo Probe, such as an endstop switch on a rotating arm.
556
 //#define Z_ENDSTOP_SERVO_NR 0
557
 //#define Z_ENDSTOP_SERVO_NR 0

+ 1
- 0
Marlin/example_configurations/adafruit/ST7565/Configuration.h ファイルの表示

559
 // The BLTouch probe emulates a servo probe.
559
 // The BLTouch probe emulates a servo probe.
560
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
560
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
561
 //#define BLTOUCH
561
 //#define BLTOUCH
562
+//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
562
 
563
 
563
 // Z Servo Probe, such as an endstop switch on a rotating arm.
564
 // Z Servo Probe, such as an endstop switch on a rotating arm.
564
 //#define Z_ENDSTOP_SERVO_NR 0
565
 //#define Z_ENDSTOP_SERVO_NR 0

+ 1
- 0
Marlin/example_configurations/delta/flsun_kossel_mini/Configuration.h ファイルの表示

617
 // The BLTouch probe emulates a servo probe.
617
 // The BLTouch probe emulates a servo probe.
618
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
618
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
619
 //#define BLTOUCH
619
 //#define BLTOUCH
620
+//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
620
 
621
 
621
 // Z Servo Probe, such as an endstop switch on a rotating arm.
622
 // Z Servo Probe, such as an endstop switch on a rotating arm.
622
 //#define Z_ENDSTOP_SERVO_NR 0
623
 //#define Z_ENDSTOP_SERVO_NR 0

+ 1
- 0
Marlin/example_configurations/delta/generic/Configuration.h ファイルの表示

604
 // The BLTouch probe emulates a servo probe.
604
 // The BLTouch probe emulates a servo probe.
605
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
605
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
606
 //#define BLTOUCH
606
 //#define BLTOUCH
607
+//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
607
 
608
 
608
 // Z Servo Probe, such as an endstop switch on a rotating arm.
609
 // Z Servo Probe, such as an endstop switch on a rotating arm.
609
 //#define Z_ENDSTOP_SERVO_NR 0
610
 //#define Z_ENDSTOP_SERVO_NR 0

+ 1
- 0
Marlin/example_configurations/delta/kossel_mini/Configuration.h ファイルの表示

604
 // The BLTouch probe emulates a servo probe.
604
 // The BLTouch probe emulates a servo probe.
605
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
605
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
606
 //#define BLTOUCH
606
 //#define BLTOUCH
607
+//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
607
 
608
 
608
 // Z Servo Probe, such as an endstop switch on a rotating arm.
609
 // Z Servo Probe, such as an endstop switch on a rotating arm.
609
 //#define Z_ENDSTOP_SERVO_NR 0
610
 //#define Z_ENDSTOP_SERVO_NR 0

+ 1
- 0
Marlin/example_configurations/delta/kossel_pro/Configuration.h ファイルの表示

598
 // The BLTouch probe emulates a servo probe.
598
 // The BLTouch probe emulates a servo probe.
599
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
599
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
600
 //#define BLTOUCH
600
 //#define BLTOUCH
601
+//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
601
 
602
 
602
 // Z Servo Probe, such as an endstop switch on a rotating arm.
603
 // Z Servo Probe, such as an endstop switch on a rotating arm.
603
 //#define Z_ENDSTOP_SERVO_NR 0
604
 //#define Z_ENDSTOP_SERVO_NR 0

+ 1
- 0
Marlin/example_configurations/delta/kossel_xl/Configuration.h ファイルの表示

617
 // The BLTouch probe emulates a servo probe.
617
 // The BLTouch probe emulates a servo probe.
618
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
618
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
619
 //#define BLTOUCH
619
 //#define BLTOUCH
620
+//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
620
 
621
 
621
 // Z Servo Probe, such as an endstop switch on a rotating arm.
622
 // Z Servo Probe, such as an endstop switch on a rotating arm.
622
 //#define Z_ENDSTOP_SERVO_NR 0
623
 //#define Z_ENDSTOP_SERVO_NR 0

+ 1
- 0
Marlin/example_configurations/makibox/Configuration.h ファイルの表示

562
 // The BLTouch probe emulates a servo probe.
562
 // The BLTouch probe emulates a servo probe.
563
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
563
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
564
 //#define BLTOUCH
564
 //#define BLTOUCH
565
+//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
565
 
566
 
566
 // Z Servo Probe, such as an endstop switch on a rotating arm.
567
 // Z Servo Probe, such as an endstop switch on a rotating arm.
567
 //#define Z_ENDSTOP_SERVO_NR 0
568
 //#define Z_ENDSTOP_SERVO_NR 0

+ 1
- 0
Marlin/example_configurations/tvrrug/Round2/Configuration.h ファイルの表示

555
 // The BLTouch probe emulates a servo probe.
555
 // The BLTouch probe emulates a servo probe.
556
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
556
 // The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
557
 //#define BLTOUCH
557
 //#define BLTOUCH
558
+//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
558
 
559
 
559
 // Z Servo Probe, such as an endstop switch on a rotating arm.
560
 // Z Servo Probe, such as an endstop switch on a rotating arm.
560
 //#define Z_ENDSTOP_SERVO_NR 0
561
 //#define Z_ENDSTOP_SERVO_NR 0

読み込み中…
キャンセル
保存