Given a list of codes, returns a list of all present axes @param list codes: Codes parsed out of the gcode command @return list: List of axes in codes
(codes)
| 102 | |
| 103 | |
| 104 | def parse_out_axes(codes): |
| 105 | """Given a list of codes, returns a list of all present axes |
| 106 | |
| 107 | @param list codes: Codes parsed out of the gcode command |
| 108 | @return list: List of axes in codes |
| 109 | """ |
| 110 | axesCodes = 'XYZAB' |
| 111 | parsedAxes = set(axesCodes) & set(codes) |
| 112 | return list(sorted(parsedAxes)) |
| 113 | |
| 114 | |
| 115 | def variable_substitute(line, environment): |
nothing calls this directly
no outgoing calls
no test coverage detected