Prusa MINI Firmware overview
block_t Struct Reference

#include <planner.h>

Collaboration diagram for block_t:

Public Attributes

volatile uint8_t flag
 
float nominal_speed_sqr
 
float entry_speed_sqr
 
float max_entry_speed_sqr
 
float millimeters
 
float acceleration
 
union {
   abce_ulong_t   steps
 
   abce_long_t   position
 
}; 
 
uint32_t step_event_count
 
uint32_t accelerate_until
 
uint32_t decelerate_after
 
uint32_t acceleration_rate
 
uint8_t direction_bits
 
uint32_t nominal_rate
 
uint32_t initial_rate
 
uint32_t final_rate
 
uint32_t acceleration_steps_per_s2
 
cutter_power_t cutter_power
 

Static Public Attributes

static constexpr uint8_t extruder = 0
 

Detailed Description

struct block_t

A single entry in the planner buffer. Tracks linear movement over multiple axes.

The "nominal" values are as-specified by gcode, and may never actually be reached due to acceleration limits.

Member Data Documentation

◆ flag

volatile uint8_t block_t::flag

◆ nominal_speed_sqr

float block_t::nominal_speed_sqr

◆ entry_speed_sqr

float block_t::entry_speed_sqr

◆ max_entry_speed_sqr

float block_t::max_entry_speed_sqr

◆ millimeters

float block_t::millimeters

◆ acceleration

float block_t::acceleration

◆ steps

abce_ulong_t block_t::steps

◆ position

abce_long_t block_t::position

◆ @24

union { ... }

◆ step_event_count

uint32_t block_t::step_event_count

◆ extruder

constexpr uint8_t block_t::extruder = 0
staticconstexpr

◆ accelerate_until

uint32_t block_t::accelerate_until

◆ decelerate_after

uint32_t block_t::decelerate_after

◆ acceleration_rate

uint32_t block_t::acceleration_rate

◆ direction_bits

uint8_t block_t::direction_bits

◆ nominal_rate

uint32_t block_t::nominal_rate

◆ initial_rate

uint32_t block_t::initial_rate

◆ final_rate

uint32_t block_t::final_rate

◆ acceleration_steps_per_s2

uint32_t block_t::acceleration_steps_per_s2

◆ cutter_power

cutter_power_t block_t::cutter_power