Tidying up parking override control implementation

[new] Added a default configuration for the parking override control
upon a reset or power-up. By default, parking is enabled, but this may
be disabled via a config.h option.

[fix] Parking override control should be checking if the command word
is passed, rather than the value.
This commit is contained in:
Sonny Jeon 2017-01-29 11:35:51 -07:00
parent e455764079
commit beaa40583c
7 changed files with 77 additions and 11 deletions

View file

@ -124,8 +124,13 @@
#define TOOL_LENGTH_OFFSET_ENABLE_DYNAMIC 1 // G43.1
// Modal Group M9: Override control
#define OVERRIDE_DISABLED 0 // None (Default: Must be zero)
#define OVERRIDE_PARKING_MOTION 1 // G56 (Default: Must be zero)
#ifdef DEACTIVATE_PARKING_UPON_INIT
#define OVERRIDE_DISABLED 0 // (Default: Must be zero)
#define OVERRIDE_PARKING_MOTION 1 // M56
#else
#define OVERRIDE_PARKING_MOTION 0 // M56 (Default: Must be zero)
#define OVERRIDE_DISABLED 1 // Parking disabled.
#endif
// Modal Group G12: Active work coordinate system
// N/A: Stores coordinate system value (54-59) to change to.