Skip to content

Commit

Permalink
Fix G10 for 4th axis A
Browse files Browse the repository at this point in the history
  • Loading branch information
dguerizec committed Mar 15, 2017
1 parent c4a1f00 commit 36a8874
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions grbl/gcode.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ uint8_t gc_execute_line(char *line)
else { coord_select = gc_block.modal.coord_select; } // Index P0 as the active coordinate system

// NOTE: Store parameter data in IJK values. By rule, they are not in use with this command.
// FIXME: Instead of IJK, we'd better use: float vector[N_AXIS]; // [DG]
if (!settings_read_coord_data(coord_select,gc_block.values.ijk)) { FAIL(STATUS_SETTING_READ_FAIL); } // [EEPROM read fail]

// Pre-calculate the coordinate data changes.
Expand Down
2 changes: 1 addition & 1 deletion grbl/gcode.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ typedef struct {

typedef struct {
float f; // Feed
float ijk[3]; // I,J,K Axis arc offsets
float ijk[N_AXIS]; // I,J,K Axis arc offsets
uint8_t l; // G10 or canned cycles parameters
int32_t n; // Line number
float p; // G10 or dwell parameters
Expand Down

0 comments on commit 36a8874

Please sign in to comment.