fixed items from code review
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
|
||||
import math
|
||||
|
||||
from ..helpers.console_output import ConsoleOutput
|
||||
@@ -39,7 +36,7 @@ def create_vibrations_profile(gcmd, config, st_process: ShakeTuneProcess) -> Non
|
||||
raise gcmd.error('Input shaper is not configured! Please run the shaper calibration macro first.')
|
||||
|
||||
motors_config_parser = MotorsConfigParser(config, motors=['stepper_x', 'stepper_y'])
|
||||
if motors_config_parser.kinematics == 'cartesian' or motors_config_parser.kinematics == 'corexz':
|
||||
if motors_config_parser.kinematics in {'cartesian', 'corexz'}:
|
||||
main_angles = [0, 90] # Cartesian motors are on X and Y axis directly, same for CoreXZ
|
||||
elif motors_config_parser.kinematics == 'corexy':
|
||||
main_angles = [45, 135] # CoreXY motors are on A and B axis (45 and 135 degrees)
|
||||
|
||||
Reference in New Issue
Block a user