Initial commit
This commit is contained in:
28
install.sh
Normal file
28
install.sh
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
KDIR="${HOME}/klipper"
|
||||||
|
KENV="${HOME}/klippy-env"
|
||||||
|
|
||||||
|
BKDIR="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
|
||||||
|
|
||||||
|
if [ ! -d "$KDIR" ] || [ ! -d "$KENV" ]; then
|
||||||
|
echo "idm: klipper or klippy env doesn't exist"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# install idm requirements to env
|
||||||
|
echo "idm: installing python requirements to env, this may take 10+ minutes."
|
||||||
|
"${KENV}/bin/pip" install -r "${BKDIR}/requirements.txt"
|
||||||
|
|
||||||
|
# update link to idm.py
|
||||||
|
echo "idm: linking klippy to idm.py."
|
||||||
|
if [ -e "${KDIR}/klippy/extras/idm.py" ]; then
|
||||||
|
rm "${KDIR}/klippy/extras/idm.py"
|
||||||
|
fi
|
||||||
|
ln -s "${BKDIR}/idm.py" "${KDIR}/klippy/extras/idm.py"
|
||||||
|
|
||||||
|
# exclude idm.py from klipper git tracking
|
||||||
|
if ! grep -q "klippy/extras/idm.py" "${KDIR}/.git/info/exclude"; then
|
||||||
|
echo "klippy/extras/idm.py" >> "${KDIR}/.git/info/exclude"
|
||||||
|
fi
|
||||||
|
echo "idm: installation successful."
|
||||||
2
requirements.txt
Normal file
2
requirements.txt
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# klipper python virtual environment requirements for beacon
|
||||||
|
numpy>=1.16.6
|
||||||
51
说明.txt
Normal file
51
说明.txt
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
解压后拖到klipper文件夹所在的用户目录
|
||||||
|
执行install.sh
|
||||||
|
|
||||||
|
[idm]
|
||||||
|
serial:/dev/serial/by-id/usb-IDM_614e_473431383817584A-if00
|
||||||
|
|
||||||
|
#/dev/serial/by-id/usb-1a86_USB2.0-Ser_-if00-port0
|
||||||
|
# Path to the serial port for the idm device. Typically has the form
|
||||||
|
# /dev/serial/by-id/usb-idm_idm_...
|
||||||
|
speed: 40.
|
||||||
|
# Z probing dive speed.
|
||||||
|
lift_speed: 5.
|
||||||
|
# Z probing lift speed.
|
||||||
|
backlash_comp: 0.5
|
||||||
|
# Backlash compensation distance for removing Z backlash before measuring
|
||||||
|
# the sensor response.
|
||||||
|
x_offset: 0.
|
||||||
|
# X offset of idm from the nozzle.
|
||||||
|
y_offset: 21.1
|
||||||
|
# Y offset of idm from the nozzle.
|
||||||
|
trigger_distance: 2.
|
||||||
|
# idm trigger distance for homing.
|
||||||
|
trigger_dive_threshold: 1.5
|
||||||
|
# Threshold for range vs dive mode probing. Beyond `trigger_distance +
|
||||||
|
# trigger_dive_threshold` a dive will be used.
|
||||||
|
trigger_hysteresis: 0.006
|
||||||
|
# Hysteresis on trigger threshold for untriggering, as a percentage of the
|
||||||
|
# trigger threshold.
|
||||||
|
cal_nozzle_z: 0.1
|
||||||
|
# Expected nozzle offset after completing manual Z offset calibration.
|
||||||
|
cal_floor: 0.1
|
||||||
|
# Minimum z bound on sensor response measurement.
|
||||||
|
cal_ceil:5.
|
||||||
|
# Maximum z bound on sensor response measurement.
|
||||||
|
cal_speed: 1.0
|
||||||
|
# Speed while measuring response curve.
|
||||||
|
cal_move_speed: 10.
|
||||||
|
# Speed while moving to position for response curve measurement.
|
||||||
|
default_model_name: default
|
||||||
|
# Name of default idm model to load.
|
||||||
|
mesh_main_direction: y
|
||||||
|
# Primary travel direction during mesh measurement.
|
||||||
|
#mesh_overscan: -1
|
||||||
|
# Distance to use for direction changes at mesh line ends. Omit this setting
|
||||||
|
# and a default will be calculated from line spacing and available travel.
|
||||||
|
mesh_cluster_size: 1
|
||||||
|
# Radius of mesh grid point clusters.
|
||||||
|
mesh_runs: 2
|
||||||
|
# Number of passes to make during mesh scan.
|
||||||
|
serial改成你自己的
|
||||||
|
probe项可以删了
|
||||||
Reference in New Issue
Block a user