Skip to content

Commit

Permalink
MACRO: y coordinate VAOC sanity check added
Browse files Browse the repository at this point in the history
  • Loading branch information
HelgeKeck committed Oct 29, 2024
1 parent 1cee86d commit d46d649
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions macros/idex/vaoc.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,10 @@ gcode:
DEBUG_ECHO PREFIX="_VAOC_CALIBRATE_Z_OFFSET" MSG={'"xcontrolpoint: %.6f, ycontrolpoint: %.6f, zcontrolpoint: %.6f, zoffsetcontrolpoint: %.6f, expected_camera_x_position: %.6f, expected_camera_y_position: %.6f"' % (idex_xcontrolpoint, idex_ycontrolpoint, idex_zcontrolpoint, idex_zoffsetcontrolpoint, expected_camera_x_position, expected_camera_y_position)}

# vaoc sanity check
{% if printer.toolhead.position.y|float != idex_ycontrolpoint %}
M84
{ action_raise_error("Unexpected y-coordinate detected! VAOC aborted!") }
{% endif %}
{% if is_fixed %}
{% if (idex_xcontrolpoint - expected_camera_x_position)|abs > 5 %}
{ action_raise_error("Unexpected VAOC x-control point detected! Please run '_VAOC_RESET' to roll back to default values.") }
Expand Down Expand Up @@ -682,6 +686,10 @@ gcode:
DEBUG_ECHO PREFIX="_VAOC_CALIBRATE_TEMP_OFFSET" MSG={'"xcontrolpoint: %.6f, ycontrolpoint: %.6f, zcontrolpoint: %.6f, zoffsetcontrolpoint: %.6f, expected_camera_x_position: %.6f, expected_camera_y_position: %.6f"' % (idex_xcontrolpoint, idex_ycontrolpoint, idex_zcontrolpoint, idex_zoffsetcontrolpoint, expected_camera_x_position, expected_camera_y_position)}

# vaoc sanity check
{% if printer.toolhead.position.y|float != idex_ycontrolpoint %}
M84
{ action_raise_error("Unexpected y-coordinate detected! VAOC aborted!") }
{% endif %}
{% if is_fixed %}
{% if (idex_xcontrolpoint - expected_camera_x_position)|abs > 5 %}
{ action_raise_error("Unexpected VAOC x-control point detected! Please run '_VAOC_RESET' to roll back to default values.") }
Expand Down

0 comments on commit d46d649

Please sign in to comment.