muele-marlin/Marlin
AnHardt 3f45a1acf9 Check probes only when deployed
Aim: Test probes in update_endstops only when activated

Changes:
Configurations
 Add define for FIX_MOUNTED_PROBE to handle the situation where formerly ENDSTOPS_ONLY_FOR_HOMING had to be set, or lowering the nozzle below Z_PROBE_OFFSET_FROM_EXTRUDER could give an "endstop hit" message.
 Add define for Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN to indicate a common situation, that we have a probe but it is connected to an endstop pin
 Add some comments
 Shift some entries to have related things together.

Conditionals.h
 We have a probe (HAS_Z_MIN_PROBE) if one of the pins is defined AND one of the probes is defined.

SanityCheck.h
 Add some tests if the probe is connected and if we have defined a probe.

stepper.cpp
 Changes to test the probe only when it is deployed (z_probe_is_active).
 Test update_endstops() when the probe is deployed.

MarlinMain.cpp
 a. set and reset z_probe_is_active in deploy_z_probe(), stow_z_probe() and dock_sled()
 b. set and reset z_probe_is_active in the case a z-servo is moved to a defined position. The only remaining unhandled servo move is in M280 where we do not end in a defined position. If you want to handle a probe use M401/402
 c. skip deploying/stowing when already deployed/stowed in the dedicated deploy/stow functions.
 d. Handle the new FIX_MOUNTED_PROBE in parallel to a servo driven probe/endstop.

 To do: In another PR. handle all probes in deploy/stow_z_probe.
 Sort out SERVO_LEVELING vs. HAS_SERVO_ENDSTOPS.
2016-03-19 02:00:08 -07:00
..
example_configurations Check probes only when deployed 2016-03-19 02:00:08 -07:00
fonts Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
scripts Cosmetic tweaks from dev 2016-03-06 05:52:00 -08:00
blinkm.cpp Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
blinkm.h Deprecate Support for Arduino IDE < 1.0.5 2015-06-08 17:15:28 -05:00
boards.h Add AJ4P pins and fix RAMBO pins 2016-03-06 05:52:01 -08:00
buzzer.cpp Suppress some compiler warnings 2015-08-16 06:56:47 -05:00
buzzer.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
cardreader.cpp Use a separate serial line buffer 2016-03-18 16:46:20 -07:00
cardreader.h Use a separate serial line buffer 2016-03-18 16:46:20 -07:00
Conditionals.h Check probes only when deployed 2016-03-19 02:00:08 -07:00
Configuration.h Check probes only when deployed 2016-03-19 02:00:08 -07:00
Configuration_adv.h Implement BABYSTEPPING for COREXY and COREXZ 2016-03-18 18:22:53 -07:00
configuration_store.cpp Wrap macros to prevent bad expansions 2016-03-12 22:38:55 -08:00
configuration_store.h Overridable Options - Part 11 (PR#2563) 2015-07-31 01:07:04 -05:00
Default_Version.h Don't override SOURCE_CODE_URL in Default_Version.h 2016-03-06 05:51:56 -08:00
digipot_mcp4451.cpp Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
dogm_bitmaps.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
dogm_font_data_6x9_marlin.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
dogm_font_data_HD44780_C.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
dogm_font_data_HD44780_J.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
dogm_font_data_HD44780_W.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
dogm_font_data_ISO10646_1.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
dogm_font_data_ISO10646_5_Cyrillic.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
dogm_font_data_ISO10646_CN.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
dogm_font_data_ISO10646_Kana.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
dogm_font_data_Marlin_symbols.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
dogm_lcd_implementation.h Move definition of "blink" to main ultralcd file 2016-03-17 18:19:05 -07:00
fastio.h Clean up "else" and other spacing 2015-11-12 00:03:21 -06:00
language.h Send a Busy signal to hosts during long processes, wait for input, etc 2016-03-18 22:38:35 -07:00
language_an.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
language_bg.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
language_ca.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
language_cn.h Various minor spelling corrections 2016-03-05 20:41:15 -08:00
language_cz.h Show nozzles, heaters, and extruders numbered 1-4 2015-09-12 07:40:18 -05:00
language_da.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
language_de.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
language_en.h Various minor spelling corrections 2016-03-05 20:41:15 -08:00
language_es.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
language_eu.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
language_fi.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
language_fr.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
language_gl.h Galician (gl) language. 2015-09-30 14:46:01 -05:00
language_it.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
language_kana.h Update language_kana.h 2015-11-12 00:00:51 -06:00
language_kana_utf8.h Update language_kana_utf8.h 2015-11-12 00:00:32 -06:00
language_nl.h Back port language translation 2015-12-10 06:31:41 -06:00
language_pl.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
language_pt-br.h Uptades the pt-br translation 2016-03-14 21:16:57 -03:00
language_pt-br_utf.h Uptades the pt-br translation 2016-03-14 21:16:57 -03:00
language_pt.h Fix Portuguese (Portugal) strings (PR#2700) 2015-11-12 00:08:42 -06:00
language_ru.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
language_test.h Various minor spelling corrections 2016-03-05 20:41:15 -08:00
M100_Free_Mem_Chk.cpp Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
macros.h Merge pull request #3147 from thinkyhead/rc_stringify_macro 2016-03-15 17:37:03 -07:00
Makefile Various minor spelling corrections 2016-03-05 20:41:15 -08:00
Marlin.h Merge pull request #3012 from thinkyhead/fix_command_injection 2016-03-19 01:43:54 -07:00
Marlin.ino Apply ENABLED / DISABLED to Marlin core files (PR#2558) 2015-07-31 01:03:58 -05:00
Marlin_main.cpp Check probes only when deployed 2016-03-19 02:00:08 -07:00
MarlinSerial.cpp deleted double used comments 2016-03-06 05:51:58 -08:00
MarlinSerial.h Protect MarlinSerial against interrupts 2016-02-24 17:18:12 +01:00
mesh_bed_leveling.cpp Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
mesh_bed_leveling.h Additional wrapping for #3140 2016-03-15 01:18:58 -07:00
pins.h Add AJ4P pins and fix RAMBO pins 2016-03-06 05:52:01 -08:00
pins_3DRAG.h Base RAMPS-like boards on RAMPS 1.4 2016-03-06 05:52:00 -08:00
pins_5DPRINT.h Remove unused ALARM_PIN 2016-03-02 14:29:49 +01:00
pins_99.h Split up pins to make it more manageable 2015-01-27 15:32:34 -08:00
pins_A4JP.h Add AJ4P pins and fix RAMBO pins 2016-03-06 05:52:01 -08:00
pins_AZTEEG_X1.h Split up pins to make it more manageable 2015-01-27 15:32:34 -08:00
pins_AZTEEG_X3.h Base RAMPS-like boards on RAMPS 1.4 2016-03-06 05:52:00 -08:00
pins_AZTEEG_X3_PRO.h Base RAMPS-like boards on RAMPS 1.4 2016-03-06 05:52:00 -08:00
pins_BAM_DICE_DUE.h Base RAMPS-like boards on RAMPS 1.4 2016-03-06 05:52:00 -08:00
pins_BQ_ZUM_MEGA_3D.h Implemented BQ ZUM Mega 3D board layout as an override to RAMPS 1.3 2016-03-06 05:51:57 -08:00
pins_BRAINWAVE.h Remove unused ALARM_PIN 2016-03-02 14:29:49 +01:00
pins_BRAINWAVE_PRO.h Remove unused ALARM_PIN 2016-03-02 14:29:49 +01:00
pins_CHEAPTRONIC.h SDCARDDETECT -> SD_DETECT, added docs 2015-08-02 21:59:41 -05:00
pins_ELEFU_3.h SDCARDDETECT -> SD_DETECT, added docs 2015-08-02 21:59:41 -05:00
pins_FELIX2.h Base RAMPS-like boards on RAMPS 1.4 2016-03-06 05:52:00 -08:00
pins_GEN3_MONOLITHIC.h Split up pins to make it more manageable 2015-01-27 15:32:34 -08:00
pins_GEN3_PLUS.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
pins_GEN6.h Split up pins to make it more manageable 2015-01-27 15:32:34 -08:00
pins_GEN6_DELUXE.h Split up pins to make it more manageable 2015-01-27 15:32:34 -08:00
pins_GEN7_12.h cleanup 2015-01-27 15:32:34 -08:00
pins_GEN7_13.h Split up pins to make it more manageable 2015-01-27 15:32:34 -08:00
pins_GEN7_14.h cleanup 2015-01-27 15:32:34 -08:00
pins_GEN7_CUSTOM.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
pins_K8200.h Split up pins to make it more manageable 2015-01-27 15:32:34 -08:00
pins_LEAPFROG.h Move Y2 and Z2 pins defines to pins.h 2015-09-07 09:41:06 -05:00
pins_MEGACONTROLLER.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
pins_MEGATRONICS.h Apply remaining ENABLED/DISABLED conditionals 2015-08-03 16:04:48 -05:00
pins_MEGATRONICS_2.h SDCARDDETECT -> SD_DETECT, added docs 2015-08-02 21:59:41 -05:00
pins_MEGATRONICS_3.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
pins_MELZI.h Split up pins to make it more manageable 2015-01-27 15:32:34 -08:00
pins_MELZI_MAKR3D.h Rename and repair MELZI_1284 (PR#2301) 2015-06-22 22:30:07 -04:00
pins_MINIRAMBO.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
pins_MINITRONICS.h SDCARDDETECT -> SD_DETECT, added docs 2015-08-02 21:59:41 -05:00
pins_MKS_BASE.h Base RAMPS-like boards on RAMPS 1.4 2016-03-06 05:52:00 -08:00
pins_OMCA.h SDCARDDETECT -> SD_DETECT, added docs 2015-08-02 21:59:41 -05:00
pins_OMCA_A.h Rename BEEPER to BEEPER_PIN 2015-08-02 22:09:08 -05:00
pins_PRINTRBOARD.h Fix Printrboard with LCD (redo) 2016-03-05 22:13:00 -08:00
pins_RAMBO.h Add AJ4P pins and fix RAMBO pins 2016-03-06 05:52:01 -08:00
pins_RAMPS_13.h Handle RAMPS 1.3 as the special case 2016-03-06 05:52:00 -08:00
pins_RAMPS_13_EFB.h Handle RAMPS 1.3 as the special case 2016-03-06 05:52:00 -08:00
pins_RAMPS_14.h Support MAX31855 as Temperature Sensor -3 2016-03-10 02:49:54 -08:00
pins_RAMPS_14_EFB.h Rename RAMPS 1.3 pins for RAMPS 1.4 2016-03-06 05:52:00 -08:00
pins_RAMPS_OLD.h Support MAX31855 as Temperature Sensor -3 2016-03-10 02:49:54 -08:00
pins_RIGIDBOARD.h Support MAX31855 as Temperature Sensor -3 2016-03-10 02:49:54 -08:00
pins_RUMBA.h Fix up probe pin define and test 2015-09-10 10:54:03 -05:00
pins_SANGUINOLOLU_11.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
pins_SANGUINOLOLU_12.h Rename and repair MELZI_1284 (PR#2301) 2015-06-22 22:30:07 -04:00
pins_SAV_MKI.h Remove unused ALARM_PIN 2016-03-02 14:29:49 +01:00
pins_SETHI.h cleanup 2015-01-27 15:32:34 -08:00
pins_STB_11.h Split up pins to make it more manageable 2015-01-27 15:32:34 -08:00
pins_TEENSY2.h Remove unused ALARM_PIN 2016-03-02 14:29:49 +01:00
pins_TEENSYLU.h Remove unused ALARM_PIN 2016-03-02 14:29:49 +01:00
pins_ULTIMAIN_2.h SDCARDDETECT -> SD_DETECT, added docs 2015-08-02 21:59:41 -05:00
pins_ULTIMAKER.h Define servo pins just like other pins 2015-08-02 23:26:58 -05:00
pins_ULTIMAKER_OLD.h Split up pins to make it more manageable 2015-01-27 15:32:34 -08:00
planner.cpp Merge pull request #3146 from thinkyhead/rc_enabled_true_false 2016-03-15 17:35:55 -07:00
planner.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
qr_solve.cpp Use macros where possible 2016-03-06 05:51:55 -08:00
qr_solve.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
SanityCheck.h Check probes only when deployed 2016-03-19 02:00:08 -07:00
Sd2Card.cpp Use _BV macros, patch up others 2016-03-06 05:51:55 -08:00
Sd2Card.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
Sd2PinMap.h Use _BV macros, patch up others 2016-03-06 05:51:55 -08:00
SdBaseFile.cpp Wrap macros to prevent bad expansions 2016-03-12 22:38:55 -08:00
SdBaseFile.h Rename fpos_t to avoid libc conflict 2016-02-10 20:49:25 -08:00
SdFatConfig.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
SdFatStructs.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
SdFatUtil.cpp Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
SdFatUtil.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
SdFile.cpp Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
SdFile.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
SdInfo.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
SdVolume.cpp Use _BV macros, patch up others 2016-03-06 05:51:55 -08:00
SdVolume.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
servo.cpp Additional wrapping for #3140 2016-03-15 01:18:58 -07:00
servo.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
speed_lookuptable.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
stepper.cpp Check probes only when deployed 2016-03-19 02:00:08 -07:00
stepper.h Move step macros to stepper_indirection.h 2016-03-10 04:34:55 -08:00
stepper_indirection.cpp Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
stepper_indirection.h Move step macros to stepper_indirection.h 2016-03-10 04:34:55 -08:00
temperature.cpp Wrap DEFAULT_Ki, DEFAULT_Kd, PID_dT 2016-03-15 03:49:44 -07:00
temperature.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
thermistortables.h Added configuration example for the BQ Hephestos 2 3D printer. 2016-03-06 05:51:56 -08:00
ultralcd.cpp Merge pull request #3012 from thinkyhead/fix_command_injection 2016-03-19 01:43:54 -07:00
ultralcd.h Move definition of "blink" to main ultralcd file 2016-03-17 18:19:05 -07:00
ultralcd_implementation_hitachi_HD44780.h Merge pull request #3114 from thinkyhead/rc_reverse_lcd_menu 2016-03-18 15:39:29 -07:00
ultralcd_st7920_u8glib_rrd.h Additional wrapping for #3140 2016-03-15 01:18:58 -07:00
utf_mapper.h Use static locals in utf_mapper.h 2015-11-12 00:03:21 -06:00
vector_3.cpp Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
vector_3.h Styling adjustments (PR#2668 & PR#2670) 2015-10-03 22:02:45 -05:00
watchdog.cpp Clean up watchdog impl. 2015-11-12 00:03:22 -06:00
watchdog.h Clean up watchdog impl. 2015-11-12 00:03:22 -06:00