e0af0c8936
修复打印结束z轴偏移值保存无效问题,优化回零结束后先降床后回收舵机
...
Squashed commit of the following:
commit e3d668e0e54aceaf4a304f97485806bb2715e2bc
Merge: 2dabfbf08 a5955157d
Author: zkk <1007518571@qq.com>
Date: Mon Mar 3 15:30:17 2025 +0800
Merge commit 'a5955157dbf3088822e82998511a001d11b7b113' into release
commit a5955157dbf3088822e82998511a001d11b7b113
Author: ruipeng <1041589370@qq.com>
Date: Wed Feb 26 16:34:11 2025 +0800
修复F430NX二喷头安全距离错误,导致二喷头左边界不正确问题
commit bc36acddfcb47c2b2c71fd9fc48dab9b60ea541c
Author: ruipeng <1041589370@qq.com>
Date: Wed Feb 26 16:29:01 2025 +0800
优化探针收起动作,先降热床再收起探针
commit 2685ec1db9ccd559374a1cbdb673567fc9f59689
Author: ruipeng <1041589370@qq.com>
Date: Wed Feb 26 16:28:18 2025 +0800
修复全系取消打印时,z_offset保存不上的问题
commit 2dabfbf08816eafda51ba62b9a69d11801343952
Merge: fd1a6a37c aa375bcff
Author: zkk <1007518571@qq.com>
Date: Fri Feb 14 15:29:11 2025 +0800
Merge commit 'aa375bcff05744d5d2ab3fd352777abdfb59d35b' into release
commit aa375bcff05744d5d2ab3fd352777abdfb59d35b
Author: ruipeng <1041589370@qq.com>
Date: Fri Feb 14 10:41:22 2025 +0800
全系调整关闭舵机的延时,防止探针刮平台
commit 90aab9ebdc41917ea9ffadd9c09767090c3f4feb
Author: ruipeng <1041589370@qq.com>
Date: Thu Feb 6 10:51:40 2025 +0800
修复F430NX二头打印完成,停靠到指定位置时报错的问题
commit 2e214ce02ce915cb782ae44df300c33ef8929249
Author: zkk <1007518571@qq.com>
Date: Thu Feb 6 09:33:50 2025 +0800
修复零位舵机极小概率初始化角度不对问题
commit bda68396865757cdb5694b90f5268f6ace9ada7f
Author: zkk <1007518571@qq.com>
Date: Fri Jan 17 15:55:14 2025 +0800
修复设置舵机信号时长参数后,连续不停开关舵机 可能会造成出错的问题
commit fd1a6a37cc2149b4ff9f56609dc5f96d8882cb71
Merge: e2b26bb3f 440010b9c
Author: zkk <1007518571@qq.com>
Date: Fri Jan 17 14:44:27 2025 +0800
Merge commit '440010b9cbf57bf805ef93b43fc0947746235033' into release
commit 440010b9cbf57bf805ef93b43fc0947746235033
Author: zkk <1007518571@qq.com>
Date: Fri Jan 17 14:32:11 2025 +0800
增加舵机信号持续时间变量,优化零位舵机信号不持续发送
commit a15d96ff28c1f8e4a3a052f5ca9044d33d699900
Author: zkk <1007518571@qq.com>
Date: Fri Jan 17 14:12:17 2025 +0800
优化外置驱动的支持
commit fe7244707827bc5da4b0ac22d8016c67cb0bf025
Merge: c7326be18 32fc128f9
Author: zkk <1007518571@qq.com>
Date: Fri Jan 17 11:05:04 2025 +0800
Merge branch 'develop' of https://server.creatbot.com/Gitea/CreatBot/CreatBotKlipper into develop
commit 32fc128f991b4a336793a451da30273652b827f7
Author: ruipeng <1041589370@qq.com>
Date: Fri Jan 17 10:42:44 2025 +0800
修复F430NX停靠喷头与偏移值的计算逻辑
commit 75da8e8e634d4b65f1c8834421ae5638c7b479e0
Author: ruipeng <1041589370@qq.com>
Date: Fri Jan 17 09:10:15 2025 +0800
修复V0版机型T_fan逻辑问题
commit e2b26bb3fe3992b5f4eb25bffe9ea82c450cde7a
Merge: 3024b7666 c7326be18
Author: zkk <1007518571@qq.com>
Date: Fri Jan 10 13:39:00 2025 +0800
Merge commit 'c7326be1837eda161c5a13cfd3d00ea74b7d4753' into release
commit c7326be1837eda161c5a13cfd3d00ea74b7d4753
Merge: d0dcac451 9da7304dc
Author: zkk <1007518571@qq.com>
Date: Fri Jan 10 13:38:31 2025 +0800
Merge branch 'develop' of https://server.creatbot.com/Gitea/CreatBot/CreatBotKlipper into develop
commit d0dcac45196e9012caea32ee8099ee266f5777a2
Author: zkk <1007518571@qq.com>
Date: Fri Jan 10 10:56:34 2025 +0800
全系降低探测舵机的速度
commit 9da7304dc2911e3180e8fd92ef281dd9280ef289
Author: ruipeng <1041589370@qq.com>
Date: Thu Jan 9 16:39:13 2025 +0800
修复F430NX在DUAL模式下,耗材触发提示不准确的问题
commit ea3e219f503c3086fd13ff5e68ee57bc49b1e354
Author: ruipeng <1041589370@qq.com>
Date: Thu Jan 9 10:09:21 2025 +0800
1、修复F430NX断料自动切头时,喷头偏移值未应用的问题
2、修复喷头一停靠位置不对的问题
commit 3024b76663d614ef8da0d0d5fcd0add3cdca4d39
Merge: 03d11a16b dda0962b9
Author: zkk <1007518571@qq.com>
Date: Tue Jan 7 17:21:40 2025 +0800
Merge commit 'dda0962b986d0c9d6a1a442f5c5ef63d151f5ef2' into release
commit dda0962b986d0c9d6a1a442f5c5ef63d151f5ef2
Author: ruipeng <1041589370@qq.com>
Date: Tue Jan 7 16:40:43 2025 +0800
修复F430NX回零后,切换喷头会报错的问题
commit 95d20c9b6357a444871ea9dce5f5ad35d74c1990
Author: ruipeng <1041589370@qq.com>
Date: Tue Jan 7 16:33:54 2025 +0800
1、修复F430NX触发耗材检测,喷头超时冷却,手动设置温度并装载耗材后,恢复打印时二头温度不恢复的问题。 2、修改等待温度恢复的提示内容
commit 2c2d0c7be12d6c497a1a479ec3aa08499f6bba0f
Author: ruipeng <1041589370@qq.com>
Date: Tue Jan 7 16:33:31 2025 +0800
优化F430NX驱动散热风扇启停逻辑
commit 3e5c530975dfa058be7db31c15116d46e6aaad84
Author: ruipeng <1041589370@qq.com>
Date: Tue Jan 7 13:56:48 2025 +0800
调整F30NX网床调平时探针提升的高度
规避offset过大时未移动床即触发的报错
commit c7cb4b97c26c14806b1bbc131510f792ab15b66a
Author: ruipeng <1041589370@qq.com>
Date: Thu Jan 2 17:57:20 2025 +0800
全系添加_CANCEL_PRINT_BASE宏支持
commit 03d11a16b3edc1f440251420b1105d20872ebdd7
Merge: e052ab095 ba4f343e9
Author: zkk <1007518571@qq.com>
Date: Tue Dec 31 17:28:20 2024 +0800
Merge commit 'ba4f343e9430af5538610529dd400f1f954b0078' into release
commit ba4f343e9430af5538610529dd400f1f954b0078
Author: ruipeng <1041589370@qq.com>
Date: Tue Dec 31 17:25:28 2024 +0800
F430NX:Y驱动细分由128->64
commit e052ab0957f7991a78b90e9974ae07d60d266226
Merge: 25bc7c6d9 b2b98c057
Author: zkk <1007518571@qq.com>
Date: Tue Dec 31 15:15:14 2024 +0800
Merge commit 'b2b98c057a7d23f9c8b0aec4c14844f7c24d6bde' into release
commit b2b98c057a7d23f9c8b0aec4c14844f7c24d6bde
Author: ruipeng <1041589370@qq.com>
Date: Tue Dec 31 10:56:18 2024 +0800
F430NX状态灯功能
commit f3cdc1dd75d96f976502946e752e9f7831288469
Author: ruipeng <1041589370@qq.com>
Date: Tue Dec 31 10:55:48 2024 +0800
全系支持PRINT_START,PRINT_END宏
commit ecbde51331316e6c454c09d03d93c3337ae17d8a
Author: ruipeng <1041589370@qq.com>
Date: Tue Dec 31 10:54:11 2024 +0800
F430NX二喷头静音阈值由200->300
commit 40985b8d9a7a8e26fb3c448f0794dab82d866382
Author: ruipeng <1041589370@qq.com>
Date: Tue Dec 31 10:53:55 2024 +0800
f430NX增加驱动器散热风扇控制
commit 682e343d6176c1c0764a7befd12d7971374b2b29
Author: ruipeng <1041589370@qq.com>
Date: Mon Dec 30 17:27:29 2024 +0800
修复必须回零后才能取消打印的问题
commit e941884b8ec1d5aec058a6fdc2a2aa94f40bf8b5
Author: ruipeng <1041589370@qq.com>
Date: Mon Dec 30 16:29:08 2024 +0800
修复F430NX机型Y轴在零位时回零报错的问题
commit e2a9ff2bfe2f9d4971045ce6fbd6f9835cf6475a
Author: ruipeng <1041589370@qq.com>
Date: Mon Dec 30 13:36:54 2024 +0800
优化F430NX复制、镜像模式,解决坐标超范围问题
commit 4fe4b7f67dc4b09b67dfb930e3bae80a525e164f
Author: ruipeng <1041589370@qq.com>
Date: Mon Dec 30 13:32:25 2024 +0800
调整F430NX喷头二X电流,由1->1.5
commit f8f7aabbe226d987bea3ba9033569b12eb00f182
Author: zkk <1007518571@qq.com>
Date: Fri Dec 27 17:15:17 2024 +0800
关闭F430NX热风校验功能
commit 7f532dc1019ad4ade1992c835b925f162c80ba1a
Author: zkk <1007518571@qq.com>
Date: Fri Dec 27 17:14:51 2024 +0800
删除旧的设置offset宏定义
commit 34b6971b41e0b6a7bce978901404cec1e80b17a4
Author: ruipeng <1041589370@qq.com>
Date: Fri Dec 27 15:29:04 2024 +0800
修复自动切头开关逻辑,优化恢复打印弹窗内容
commit 765bc8dc22cad7f75f2d8d76f0add94dc0ab802a
Author: ruipeng <1041589370@qq.com>
Date: Thu Dec 26 11:41:34 2024 +0800
优化耗材检测弹窗内容及格式
commit 25bc7c6d9ee89e6cd4e326bb8497faf6a6256fcd
Merge: 588ea4402 9b487abec
Author: zkk <1007518571@qq.com>
Date: Thu Dec 19 16:23:07 2024 +0800
Merge commit '9b487abec3449dea3673618c1a8b9e88f16b4c40' into release
commit 9b487abec3449dea3673618c1a8b9e88f16b4c40
Author: ruipeng <1041589370@qq.com>
Date: Thu Dec 19 16:03:04 2024 +0800
F430NX更换为闭环Y电机
commit 641f767175387cacf9820affd616dcdb017590b9
Author: ruipeng <1041589370@qq.com>
Date: Thu Dec 19 10:42:11 2024 +0800
F430NX复制、镜像模式优化
commit ef148604da4f925305939e74cfb0edc7fbd261d1
Author: ruipeng <1041589370@qq.com>
Date: Thu Dec 19 10:40:25 2024 +0800
自动切头功能
commit fa74a82184caa6a914a32578b31aeb21f8299c7c
Merge: 9307b8957 93efb1abd
Author: zkk <1007518571@qq.com>
Date: Wed Dec 18 15:53:46 2024 +0800
Merge branch 'develop' of https://server.creatbot.com/Gitea/CreatBot/CreatBotKlipper into develop
commit 9307b89570a63040259b457ef7ff8969b394b527
Author: zkk <1007518571@qq.com>
Date: Wed Dec 18 15:49:41 2024 +0800
修复重启时候有概率出现温度数值异常的问题
commit 9925c7864471f1f9f7b1e22f45dc4d1421c1245a
Author: zkk <1007518571@qq.com>
Date: Tue Dec 17 15:55:28 2024 +0800
实现二喷头的偏移值校准功能
commit 93efb1abdea67a732b17351b8c31ae5387eaaf91
Author: ruipeng <1041589370@qq.com>
Date: Fri Dec 13 09:55:41 2024 +0800
配置网床调平淡出高度
commit 30b77165a7bdae2cd338c283fbab3c8baa37c694
Author: ruipeng <1041589370@qq.com>
Date: Thu Dec 12 14:03:30 2024 +0800
调整F430NX探测舵机角度,由90°->120°
commit 588ea4402812b09100b2417b040d7daa2d2fbfaa
Merge: 349f8f7a2 9be203c58
Author: zkk <1007518571@qq.com>
Date: Thu Dec 12 10:39:56 2024 +0800
Merge commit '9be203c58f7c88e4f6963a1079d2dcfaa5401dde' into release
commit 9be203c58f7c88e4f6963a1079d2dcfaa5401dde
Author: ruipeng <1041589370@qq.com>
Date: Wed Dec 11 15:24:05 2024 +0800
新增D600pro2、D1000的V0版机型
commit 349f8f7a249ac113700eed2b4a234473016d32c0
Merge: e554ddb83 401da556f
Author: zkk <1007518571@qq.com>
Date: Fri Nov 29 10:21:01 2024 +0800
Merge branch 'develop' into release
commit 401da556f58df5e917a379dd54565ef5775f7ed2
Merge: 508378825 52ea64cf8
Author: zkk <1007518571@qq.com>
Date: Fri Nov 29 10:12:48 2024 +0800
Merge branch 'develop' of https://server.creatbot.com/Gitea/CreatBot/CreatBotKlipper into develop
commit 52ea64cf83535c84c378239b43a7f0a6a362a517
Author: ruipeng <1041589370@qq.com>
Date: Thu Nov 28 10:55:09 2024 +0800
修复暂停掉温后,恢复时喷头温度不能恢复的问题
commit 508378825da2881043b88427a6df03230c9f66c0
Author: zkk <1007518571@qq.com>
Date: Wed Nov 27 14:47:23 2024 +0800
D1000 z轴最大速度设置成7
commit 41c2cd39275dfecafd85a0cbe504f2f5f1cdeec6
Author: zkk <1007518571@qq.com>
Date: Mon Nov 25 17:12:23 2024 +0800
优化热电偶最大报错次数
# Conflicts:
# config/CreatBot_D1000_V0/base.cfg resolved by e3d668e0e54aceaf4a304f97485806bb2715e2bc version
# config/CreatBot_D600Pro2_V0/base.cfg resolved by e3d668e0e54aceaf4a304f97485806bb2715e2bc version
2025-03-03 15:43:13 +08:00
Kevin O'Connor
fcf064ba68
probe_eddy_current: Add support for probing in "scan" mode
...
When probing in "scan" mode, the toolhead will pause at each position,
but does not descend. This can notably reduce the total probing time.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2024-06-14 13:38:07 -04:00
Kevin O'Connor
1591a51f76
probe: Gather multiple results in ProbeSessionHelper
...
Change run_probe() to gather the results locally, and introduce a new
pull_probed_results() method that returns the previously probed
results. This is in preparation for future probing code that benefits
from batching probe results.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2024-06-14 13:38:07 -04:00
Kevin O'Connor
8de7153952
probe: Rework ProbePointsHelper to store results locally
...
Store the results of each probe attempt in a local "results" variable
(instead of a class variable) when performing "automatic" probes.
This is in preparation for gathering the results in the probing
implementation.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2024-06-14 13:38:07 -04:00
Kevin O'Connor
d4bae4dffe
probe: Simplify PrinterProbe() now that there are no external callers
...
Create the mcu_probe interface locally within PrinterProbe().
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2024-06-10 12:20:21 -04:00
Kevin O'Connor
f72f94e299
probe: Move add_steppers() logic to HomingViaProbeHelper class
...
Perform the initial add_steppers() configuration in a single location.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2024-06-10 12:20:21 -04:00
Kevin O'Connor
58753e58a2
probe: Use ppins.setup_pin() helper
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2024-06-10 12:20:21 -04:00
Kevin O'Connor
e780049a74
probe: Use an event for axis twist compensation updates
...
Instead of directly calling axis_twist_compensation, send an event
that can perform the necessary updates.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2024-06-10 12:20:21 -04:00
Kevin O'Connor
f4adb29999
probe: Ensure all external callers always call end_probe_session()
...
Rework ProbeSessionHelper's multi_probe_start() and multi_probe_end()
to start_probe_session() and end_probe_session(). Ensure all external
callers always invoke these methods prior to running run_probe().
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2024-06-10 12:20:21 -04:00
Kevin O'Connor
982a50c70a
probe: Split z_virtual_endstop handling to new HomingViaProbeHelper class
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2024-06-10 12:20:21 -04:00
Kevin O'Connor
de9798fb5b
probe: Move offset handling to new ProbeOffsetsHelper class
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2024-06-10 12:20:21 -04:00
Kevin O'Connor
f9a2920cee
probe: Move PROBE_ACCURACY command to ProbeCommandHelper class
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2024-06-10 12:20:21 -04:00
Kevin O'Connor
292512f813
probe: Move PROBE_CALIBRATE to ProbeCommandHelper class
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2024-06-10 12:20:21 -04:00
Kevin O'Connor
6ea5b94d1e
probe: Convert probe.get_lift_speed() to probe.get_print_params()
...
Add a get_print_params() method that can extract all the common
probing parameters. Replace get_lift_speed() with this more general
function.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2024-06-10 12:20:21 -04:00
Kevin O'Connor
6f6122a576
probe: Move Z_OFFSET_APPLY_PROBE to ProbeCommandHelper class
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2024-06-10 12:20:21 -04:00
Kevin O'Connor
8fc11b4a2e
probe: Introduce new ProbeCommandHelper class
...
Move the PROBE and QUERY_PROBE commands from ProbeSessionHelper class
to new ProbeCommandHelper class.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2024-06-10 12:20:21 -04:00
Kevin O'Connor
bec47e0492
probe: Split out new ProbeSessionHelper() class from PrinterProbe()
...
Separate out the PrinterProbe() class to make the external probe
interfaces more clear.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2024-06-10 12:20:21 -04:00
Kevin O'Connor
12f92c55f1
probe: Code movement in probe.py
...
Move code around in probe.py and add some comments. No code changes.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2024-06-10 12:20:21 -04:00
Kevin O'Connor
7b490f3ec1
probe: Fix typo in activate/deactive error messages
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2024-04-27 11:10:01 -04:00
Kevin O'Connor
acdf8bb108
probe: Add a probing_move() wrapper to low-level mcu_probe class
...
This allows the low-level probe class more control on the probing
implementation.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2024-04-09 16:32:43 -04:00
Philippe Daouadi
039daecb4f
axis_twist_compensation: Add X twist compensation module ( #6149 )
...
Implements AxisTwistCompensation, and Calibrater
Supports calibration of z-offsets caused by x gantry twist
Modify PrinterProbe._probe function to check if the probed z value should be adjusted
based on axis_twist_compensation's configuration
Add documentation for [axis_twist_compensation] module
Signed-off-by: Jeremy Tan <jeremytkw98@gmail.com>
2023-08-01 13:08:53 -04:00
Pedro Lamas
87f109984a
probe: expose name on status report
...
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
2023-03-14 21:11:33 -04:00
Lasse Dalegaard
ca6e5fe514
probe: Allow overriding horizontal_move_z on gcode
...
Signed-off-by: Lasse Dalegaard <dalegaard@gmail.com>
2023-03-14 21:01:40 -04:00
Kevin O'Connor
d3484efe73
probe: Use config.getlists() for points config option
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-08-21 18:08:10 -04:00
shiftingtech
36e3969219
probe: bugfix to z_offset_apply_probe ( #4553 )
...
Command was accessing the wrong variable for the existing z offset,
leading to bad behavior.
Signed-off-by: Ben Eastep <shifting@shifting.ca>
2021-08-02 16:08:19 -04:00
shiftingtech
f949bc882d
probe: add ability to save babystepping ( #4404 )
...
Created two new extended gcodes: Z_OFFSET_APPLY_ENDSTOP, and Z_OFFSET_APPLY_PROBE.
These use the z gcode offset to revise the probe offset, or z endstop position
allowing users to make a frequently used babystepping value permanent without
manual config editing.
Signed-off-by: Ben Eastep <shifting@shifting.ca>
2021-07-25 20:20:15 -04:00
Kevin O'Connor
f3bd4e6acf
probe: Call add_stepper() earlier in boot process
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-06-09 18:58:35 -04:00
Kevin O'Connor
0a4a64058d
probe: Use original XY position on multiple probe samples
...
On some kinematics it's possible for the XY position to change
slightly during a probing move. Return back to the original XY
position on a probe lift so each probe attempt starts at the same
nominal position.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-04-28 21:40:49 -04:00
nlef
2d2db0f839
probe: Add deactivate_on_each_sample: param for Probe ( #4161 )
...
Signed-off-by: Nick Lefskiy <n.lefskiy@yandex.ru>
2021-04-24 13:39:58 -04:00
Kevin O'Connor
58a0eb76c5
homing: Pass the HomingMove class to homing_move_begin/end events
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-29 21:20:57 -04:00
Kevin O'Connor
862d3f9633
homing: Move low-level probing logic from probe.py to homing.py
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-29 21:17:53 -04:00
Christian S
bc2f6faa17
probe: Add last_z_result to get the latest z result in an Macro ( #3835 )
...
Signed-off-by: Christian Schnellrieder <schnello.android@gmail.com>
2021-02-18 22:03:32 -05:00
Kevin O'Connor
8260a3a0c3
homing: Make homing.py an "extras" module
...
Move klippy/homing.py to klippy/extras/homing.py and convert the code
to an "extras" modules.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-01-08 14:01:34 -05:00
Kevin O'Connor
b25520795d
probe: Use configfile note_valid=False when inspecting z position_min
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-12-13 10:42:25 -05:00
Arksine
9e68105b74
probe: add update_probe_points() method to helper
...
This allows the consumers of the ProbePoints helper to be reconfigured at runtime.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-15 20:36:55 -04:00
Paul McGowan
5a2f406fd1
probe: add get_status wrapper to probe for last_query from query_probe command ( #3296 )
...
Add get_status wrapper with last_query status for macros It is sometimes useful to determine the state of the probe from a macro. If the probe is connected to an endstop pin, the results can be obtained via QUERY_ENDSTOPS but if a physical endstop is in use in addition to the probe the probe state cannot be obtained. This change allows one to use QUERY_PROBE and then access the printer.probe.last_query object to obtain the state.
Signed-off-by: Paul McGowan <mental405@gmail.com>
2020-09-09 23:10:35 -04:00
Kevin O'Connor
3bcb6970f5
probe: Make sure z is homed before probing
...
Warn if the Z axis is not homed before attempting to probe. This
improves the error message.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-09-04 15:47:52 -04:00
Kevin O'Connor
08adecd226
homing: Prefer printer.command_error() instead of homing.CommandError()
...
Update callers to use the printer.command_error reference instead of
directly using homing.CommandError() when raising or catching errors.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-09-04 12:10:36 -04:00
Kevin O'Connor
2caaaea9a4
toolhead: Add a manual_move() helper function
...
Add a helper function for submitting relative movements. This
function will also automatically ensure gcode.reset_last_position() is
called.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-08-20 21:03:22 -04:00
Kevin O'Connor
4115a77342
gcode: Automatically call reset_last_position() on a toolhead set_position()
...
Generate a "toolhead:set_position" event on a call to
toolhead.set_position() and use that event to automatically call
gcode.reset_last_position().
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-08-20 21:03:22 -04:00
Kevin O'Connor
f931da1b87
extras: Use "from . import module" for relative imports
...
Use alternate import syntax to improve Python3 compatibility.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-06-15 17:15:53 -04:00
Kevin O'Connor
787ed452c2
klippy: Rename try_load_module() to load_object()
...
Rename try_load_module() so that it uses consistent naming for
"printer objects". Change the function to raise an error by default
if the specified module does not exist.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-08 11:05:14 -04:00
Kevin O'Connor
ff6c11e827
probe: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:11 -04:00
Kevin O'Connor
ddb8311890
gcode: Create new wrapper class for gcode command parameters
...
Instead of passing a dictionary to the command handlers, create a
wrapper class and pass that class to the command handlers. This can
simplify the command handler code.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:11 -04:00
Kevin O'Connor
c590bf7643
probe: Rename probe_prepare/finalize to probe_prepare/finish
...
The probe_finalize() name is used for callbacks in both the
PrinterProbe and ProbePointsHelper classes. Rename the PrinterProbe
callback to avoid confusion.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-04-25 12:01:52 -04:00
Kevin O'Connor
804f95ebe4
homing: Don't raise a TimeoutError from home_wait()
...
Change home_wait() to return if the homing operation completed
succesfully or not. This simplifies the callers.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-02-19 12:20:00 -05:00
Kevin O'Connor
29c6c89327
probe: Don't allow errors to propagate from "gcode:command_error" event
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-02-18 11:47:04 -05:00
Kevin O'Connor
1dd952ac65
probe: Add multi_probe_begin() / multi_probe_end() callbacks
...
Add support for notifying the low-level probing handlers that a
multiple probe sequence is occurring. This is in preparation for the
bltouch code.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-02-15 17:52:44 -05:00
Kevin O'Connor
feb15eaf2e
homing: Merge home_prepare()/home_finalize() into move_begin/move_end events
...
Collapse the "homing:move_begin", "homing:move_end", home_prepare(),
and home_finalize() into two new events: "homing:homing_move_begin"
and "homing:homing_move_end". This simplifies the homing code.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-02-15 17:52:44 -05:00
Kevin O'Connor
c36fe76d69
probe: Add support for configuring lift_speed
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-01-31 15:47:06 -05:00