Updated stl parser to reflect changes to mapped mode.

master
Rostislav Lán 2 years ago
parent 94fae370b5
commit fe20f7a39a

@ -76,8 +76,12 @@ def stl_parser():
elif len(header_arr) == 3: elif len(header_arr) == 3:
mode = "m" mode = "m"
height_line = header_arr[0] height_line = header_arr[0]
# TODO: mapped mode arguments iter = header_arr[1]
pass finger_x = header_arr[2]
finger_y = header_arr[3]
finger_z = header_arr[4]
arg_string += mode + " " + height_line + \
" " + iter + " " + finger_x + " " + finger_y + " " + finger_z
else: else:
# Print unfinished command # Print unfinished command
print(arg_string, file=sys.stdout) print(arg_string, file=sys.stdout)
@ -99,6 +103,12 @@ def stl_parser():
" " + curv_rate_x + " " + curv_rate_y " " + curv_rate_x + " " + curv_rate_y
elif mode == "m": elif mode == "m":
height_line = header_arr[0] height_line = header_arr[0]
iter = header_arr[1]
finger_x = header_arr[2]
finger_y = header_arr[3]
finger_z = header_arr[4]
arg_string += height_line + " " + iter + \
" " + finger_x + " " + finger_y + " " + finger_z
pass pass
else: else:
# Print unfinished command # Print unfinished command

Loading…
Cancel
Save