aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-10-12 10:39:46 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-10-12 11:59:27 -0400
commit3b9b4e4d6f68216470bcb86070033a26a3562e23 (patch)
tree3c395273da145616cccecb94893e4c01e41c3074 /docs
parent78ba7064a73448d64a32796a2ebf3e8fd2d9beab (diff)
downloadkutter-3b9b4e4d6f68216470bcb86070033a26a3562e23.tar.gz
kutter-3b9b4e4d6f68216470bcb86070033a26a3562e23.tar.xz
kutter-3b9b4e4d6f68216470bcb86070033a26a3562e23.zip
endstop: Eliminate end_stop_set_oversample command
Pass the sample_ticks and sample_count parameters directly in the end_stop_home command instead. This simplifies the code. Also, simplify calculation of next wakeup time in end_stop_oversample_event(). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'docs')
-rw-r--r--docs/MCU_Commands.md16
1 files changed, 9 insertions, 7 deletions
diff --git a/docs/MCU_Commands.md b/docs/MCU_Commands.md
index c2f1e306..51505545 100644
--- a/docs/MCU_Commands.md
+++ b/docs/MCU_Commands.md
@@ -255,13 +255,15 @@ Stepper commands
number of steps generated with dir=1 minus the total number of steps
generated with dir=0.
-* `end_stop_home oid=%c clock=%u rest_ticks=%u pin_value=%c` : This
- command is used during stepper "homing" operations. To use this
- command a 'config_end_stop' command with the same 'oid' parameter
- must have been issued during micro-controller configuration. When
- this command is invoked, the micro-controller will sample the
- endstop pin every 'rest_ticks' clock ticks and check if it has a
- value equal to 'pin_value'. If the value matches then the movement
+* `end_stop_home oid=%c clock=%u sample_ticks=%u sample_count=%c
+ rest_ticks=%u pin_value=%c` : This command is used during stepper
+ "homing" operations. To use this command a 'config_end_stop' command
+ with the same 'oid' parameter must have been issued during
+ micro-controller configuration. When this command is invoked, the
+ micro-controller will sample the endstop pin every 'rest_ticks'
+ clock ticks and check if it has a value equal to 'pin_value'. If the
+ value matches (and it continues to match for 'sample_count'
+ additional samples spread 'sample_ticks' apart) then the movement
queue for the associated stepper will be cleared and the stepper
will come to an immediate halt. The host uses this command to
implement homing - the host instructs the endstop to sample for the