Added $376 setting for designating ABC-axes individually as rotational.

Added `$ESG` and `$ESH` system commands for outputting current setting definitions.
Added setting descriptions to most settings. Work in progress.
Added/updated preprocessor code for leaner board map files++
This commit is contained in:
Terje Io
2021-08-20 18:53:20 +02:00
parent 6f5d1cd31c
commit 384fda6e3a
17 changed files with 787 additions and 271 deletions
+4 -2
View File
@@ -1362,8 +1362,11 @@ status_code_t gc_execute_block(char *block, char *message)
uint_fast8_t idx = N_AXIS;
if (gc_block.modal.units_imperial) do { // Axes indices are consistent, so loop may be used.
idx--;
// if (bit_istrue(axis_words.mask, bit(idx)) && bit_isfalse(settings.steppers.is_rotational.mask, bit(idx)))
#if N_AXIS > 3
if (bit_istrue(axis_words.mask, bit(idx)) && bit_isfalse(settings.steppers.is_rotational.mask, bit(idx)))
#else
if (bit_istrue(axis_words.mask, bit(idx)))
#endif
gc_block.values.xyz[idx] *= MM_PER_INCH;
} while(idx);
@@ -2087,7 +2090,6 @@ status_code_t gc_execute_block(char *block, char *message)
idx = 3;
do { // Axes indices are consistent, so loop may be used to save flash space.
idx--;
// if (ijk_words.mask & bit(idx) && bit_isfalse(settings.steppers.is_rotational.mask, bit(idx)))
if (ijk_words.mask & bit(idx))
gc_block.values.ijk[idx] *= MM_PER_INCH;
} while(idx);