2020-03-02 03:19:02 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
#
|
|
|
|
# Build tests for BigTreeTech GTR 1.0
|
|
|
|
#
|
|
|
|
|
|
|
|
# exit on first failure
|
|
|
|
set -e
|
|
|
|
|
|
|
|
restore_configs
|
2021-03-03 06:15:56 +00:00
|
|
|
opt_set MOTHERBOARD BOARD_BTT_GTR_V1_0 SERIAL_PORT -1 \
|
|
|
|
EXTRUDERS 8 TEMP_SENSOR_1 1 TEMP_SENSOR_2 1 TEMP_SENSOR_3 1 TEMP_SENSOR_4 1 TEMP_SENSOR_5 1 TEMP_SENSOR_6 1 TEMP_SENSOR_7 1
|
2020-03-02 03:19:02 +00:00
|
|
|
# Not necessary to enable auto-fan for all extruders to hit problematic code paths
|
2021-03-03 06:15:56 +00:00
|
|
|
opt_set E0_AUTO_FAN_PIN PC10 E1_AUTO_FAN_PIN PC11 E2_AUTO_FAN_PIN PC12 NEOPIXEL_PIN PF13 \
|
|
|
|
X_DRIVER_TYPE TMC2208 Y_DRIVER_TYPE TMC2130 \
|
2021-09-16 07:46:16 +00:00
|
|
|
NUM_RUNOUT_SENSORS 8 FIL_RUNOUT_PIN 3 FIL_RUNOUT2_PIN 4 FIL_RUNOUT3_PIN 5 FIL_RUNOUT4_PIN 6 FIL_RUNOUT5_PIN 7 \
|
|
|
|
FIL_RUNOUT6_PIN 8 FIL_RUNOUT7_PIN 9 FIL_RUNOUT8_PIN 10 FIL_RUNOUT4_STATE HIGH FIL_RUNOUT8_STATE HIGH \
|
|
|
|
FILAMENT_RUNOUT_SCRIPT '"M600 T%c"'
|
2021-03-03 06:15:56 +00:00
|
|
|
opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER BLTOUCH NEOPIXEL_LED Z_SAFE_HOMING NOZZLE_PARK_FEATURE ADVANCED_PAUSE_FEATURE \
|
2021-09-16 07:46:16 +00:00
|
|
|
FILAMENT_RUNOUT_SENSOR FIL_RUNOUT4_PULLUP FIL_RUNOUT8_PULLUP FILAMENT_CHANGE_RESUME_ON_INSERT PAUSE_REHEAT_FAST_RESUME
|
2021-03-03 06:15:56 +00:00
|
|
|
exec_test $1 $2 "BigTreeTech GTR | 8 Extruders | Auto-Fan | Mixed TMC Drivers | Runout Sensors w/ distinct states" "$3"
|
2020-03-02 03:19:02 +00:00
|
|
|
|
|
|
|
restore_configs
|
2021-03-03 06:15:56 +00:00
|
|
|
opt_set MOTHERBOARD BOARD_BTT_GTR_V1_0 SERIAL_PORT -1 \
|
2021-06-26 18:28:56 +00:00
|
|
|
EXTRUDERS 5 TEMP_SENSOR_1 1 TEMP_SENSOR_2 1 TEMP_SENSOR_3 1 TEMP_SENSOR_4 1 \
|
2022-05-05 00:25:02 +00:00
|
|
|
Z_DRIVER_TYPE A4988 Z2_DRIVER_TYPE A4988 Z3_DRIVER_TYPE A4988 Z4_DRIVER_TYPE A4988 \
|
2021-06-26 18:28:56 +00:00
|
|
|
DEFAULT_Kp_LIST '{ 22.2, 20.0, 21.0, 19.0, 18.0 }' DEFAULT_Ki_LIST '{ 1.08 }' DEFAULT_Kd_LIST '{ 114.0, 112.0, 110.0, 108.0 }'
|
2022-04-10 05:24:07 +00:00
|
|
|
opt_enable TOOLCHANGE_FILAMENT_SWAP TOOLCHANGE_MIGRATION_FEATURE TOOLCHANGE_FS_SLOW_FIRST_PRIME TOOLCHANGE_FS_PRIME_FIRST_USED \
|
2023-02-21 00:49:15 +00:00
|
|
|
PID_PARAMS_PER_HOTEND Z_MULTI_ENDSTOPS TC_GCODE_USE_GLOBAL_X TC_GCODE_USE_GLOBAL_Y
|
2021-06-26 18:28:56 +00:00
|
|
|
exec_test $1 $2 "BigTreeTech GTR | 6 Extruders | Quad Z + Endstops" "$3"
|
2020-03-02 03:19:02 +00:00
|
|
|
|
2021-04-16 13:02:31 +00:00
|
|
|
restore_configs
|
|
|
|
opt_set MOTHERBOARD BOARD_BTT_GTR_V1_0 SERIAL_PORT -1 \
|
|
|
|
EXTRUDERS 3 TEMP_SENSOR_1 1 TEMP_SENSOR_2 1 \
|
2022-04-03 23:49:51 +00:00
|
|
|
SERVO_DELAY '{ 300, 300, 300 }' \
|
2022-04-10 06:20:05 +00:00
|
|
|
SWITCHING_TOOLHEAD_X_POS '{ 215, 0 ,0 }' \
|
|
|
|
MPC_HEATER_POWER '{ 40.0f, 40.0f, 40.0f }' \
|
|
|
|
MPC_BLOCK_HEAT_CAPACITY '{ 16.7f, 16.7f, 16.7f }' \
|
|
|
|
MPC_SENSOR_RESPONSIVENESS '{ 0.22f, 0.22f, 0.22f }' \
|
|
|
|
MPC_AMBIENT_XFER_COEFF '{ 0.068f, 0.068f, 0.068f }' \
|
2022-05-28 22:40:08 +00:00
|
|
|
MPC_AMBIENT_XFER_COEFF_FAN255 '{ 0.097f, 0.097f, 0.097f }' \
|
|
|
|
FILAMENT_HEAT_CAPACITY_PERMM '{ 5.6e-3f, 3.6e-3f, 5.6e-3f }'
|
2022-04-18 04:56:52 +00:00
|
|
|
opt_enable SWITCHING_TOOLHEAD TOOL_SENSOR MPCTEMP MPC_EDIT_MENU MPC_AUTOTUNE_MENU
|
2022-04-10 06:20:05 +00:00
|
|
|
opt_disable PIDTEMP
|
|
|
|
exec_test $1 $2 "BigTreeTech GTR | MPC | Switching Toolhead | Tool Sensors" "$3"
|
2021-04-16 13:02:31 +00:00
|
|
|
|
2020-03-02 03:19:02 +00:00
|
|
|
# clean up
|
|
|
|
restore_configs
|