Revive SCARA's home offset (unimplemented)

This commit is contained in:
Scott Lahteine
2018-11-03 03:56:33 -05:00
parent 2c9586be0c
commit d1ff22b983
13 changed files with 193 additions and 140 deletions

View File

@ -44,7 +44,7 @@ bool GcodeSuite::select_coordinate_system(const int8_t _new) {
const float diff = new_offset[i] - old_offset[i];
if (diff) {
position_shift[i] += diff;
update_software_endstops((AxisEnum)i);
update_workspace_offset((AxisEnum)i);
}
}
return true;

View File

@ -42,7 +42,7 @@ void GcodeSuite::G92() {
const float v = position_shift[i];
if (v) {
position_shift[i] = 0;
update_software_endstops((AxisEnum)i);
update_workspace_offset((AxisEnum)i);
}
}
#endif // Not SCARA
@ -79,7 +79,7 @@ void GcodeSuite::G92() {
}
else {
position_shift[i] += d; // Other axes simply offset the coordinate space
update_software_endstops((AxisEnum)i);
update_workspace_offset((AxisEnum)i);
}
#endif
}