plan_block_t * plan_get_current_block()
Returns address of first planner block, if available. Called by various main program functions...
#define STATUS_TRAVEL_EXCEEDED
Planner data prototype. Must be used when passing new motions to the planner.
uint8_t jog_execute(plan_line_data_t *pl_data, parser_block_t *gc_block)
Sets up valid jog motion received from g-code parser, checks for soft-limits, and executes the jog...
#define BITFLAG_SOFT_LIMIT_ENABLE
uint8_t state
Tracks the current system state of Grbl.
void mc_line(float *target, plan_line_data_t *pl_data)
Execute linear motion in absolute millimeter coordinates. Feed rate given in millimeters/second.
uint8_t flags
Contains default boolean settings.
system_t sys
Declare system global variable structure.
uint8_t system_check_travel_limits(float *target)
CoreXY calculation only. Returns x or y-axis "steps" based on CoreXY motor steps. ...
void st_prep_buffer()
Prepares step segment buffer. Continuously called from main program.
void st_wake_up()
BLOCK VELOCITY PROFILE DEFINITION.
int32_t line_number
Desired line number to report when executing.
#define PL_COND_FLAG_NO_FEED_OVERRIDE
Motion does not honor feed override.
float xyz[3]
X,Y,Z Translational axes.
#define STATE_JOG
Jogging mode.
float feed_rate
Desired feed rate for line motion. Value is ignored, if rapid motion.
uint8_t condition
Bitflag variable to indicate planner conditions. See defines above.
plan_line_data_t * pl_data
#define STATUS_OK
Define Grbl status codes. Valid values (0-255)
#define STATE_IDLE
Define system state bit map. The state variable primarily tracks the individual functions.
#define bit_istrue(x, mask)