Prusa MINI Firmware overview
menu_vars.cpp File Reference
#include "menu_vars.h"
#include "config.h"
#include "int_to_cstr.h"
#include "../Marlin/src/inc/MarlinConfig.h"
#include "../Marlin/src/module/temperature.h"
#include "gui_config_mini.h"
#include "Configuration_A3ides_2209_MINI_adv.h"

Variables

const int x_axis_len = X_LEN
 
const int y_axis_len = Y_LEN
 
const int z_axis_len = Z_LEN
 
const int len_tol_abs = LEN_TOL_ABS
 
const int len_tol_rev = LEN_TOL_REV
 
const int axis_steps_per_unit [] = DEFAULT_AXIS_STEPS_PER_UNIT
 
const float nozzle_to_probe [3] = NOZZLE_TO_PROBE_OFFSET
 
const float z_offset_step = 1.0F / float(axis_steps_per_unit[2])
 
const float z_offset_min = Z_OFFSET_MIN
 
const float z_offset_max = Z_OFFSET_MAX
 
const float zoffset_fl_range [3] = { z_offset_min, z_offset_max, z_offset_step }
 
const char * zoffset_fl_format = "%.3f"
 
const int32_t nozzle_range [3] = { 0, (HEATER_0_MAXTEMP - 15) * 1000, 1000 }
 
const int32_t heatbed_range [3] = { 0, BED_MAXTEMP * 1000, 1000 }
 
const int32_t printfan_range [3] = { 0, 255000, 1000 }
 
const int32_t flowfact_range [3] = { 50000, 150000, 1000 }
 
const int32_t feedrate_range [3] = { 10000, 255000, 1000 }
 
const int32_t move_x [3] = { (int32_t)(X_MIN_POS * 1000), (int32_t)(X_MAX_POS * 1000), 1000 }
 
const int32_t move_y [3] = { (int32_t)(Y_MIN_POS * 1000), (int32_t)(Y_MAX_POS * 1000), 1000 }
 
const int32_t move_z [3] = { (int32_t)(Z_MIN_POS * 1000), (int32_t)(Z_MAX_POS * 1000), 1000 }
 
const int32_t move_e [3] = { -EXTRUDE_MAXLENGTH * 1000, EXTRUDE_MAXLENGTH * 1000, 1000 }
 
const int32_t manual_feedrate [4] = MANUAL_FEEDRATE
 
const int32_t extrude_min_temp = EXTRUDE_MINTEMP
 
constexpr const int park_points [3] = NOZZLE_PARK_POINT
 
constexpr const int X_home = X_HOME_DIR > 0 ? X_MAX_POS : X_MIN_POS
 
constexpr const int Y_home = Y_HOME_DIR > 0 ? Y_MAX_POS : Y_MIN_POS
 
constexpr const int Z_home = Z_HOME_DIR > 0 ? Z_MAX_POS : Z_MIN_POS
 
constexpr const char X_home_gcode []
 
constexpr const char Y_home_gcode []
 
constexpr const char Z_home_gcode []
 
constexpr const int32_t filament_change_slow_load_length = FILAMENT_CHANGE_SLOW_LOAD_LENGTH
 
constexpr const int32_t filament_change_fast_load_length = FILAMENT_CHANGE_FAST_LOAD_LENGTH
 
constexpr const int32_t filament_change_slow_purge_length = 40
 
constexpr const float filament_unload_mini_length = 392.0F
 
constexpr const int32_t filament_change_full_load_length = filament_change_fast_load_length + filament_change_slow_load_length
 
constexpr const int32_t filament_change_full_purge_load_length = filament_change_full_load_length + filament_change_slow_purge_length
 

Variable Documentation

◆ x_axis_len

const int x_axis_len = X_LEN

◆ y_axis_len

const int y_axis_len = Y_LEN

◆ z_axis_len

const int z_axis_len = Z_LEN

◆ len_tol_abs

const int len_tol_abs = LEN_TOL_ABS

◆ len_tol_rev

const int len_tol_rev = LEN_TOL_REV

◆ axis_steps_per_unit

const int axis_steps_per_unit[] = DEFAULT_AXIS_STEPS_PER_UNIT

◆ nozzle_to_probe

const float nozzle_to_probe[3] = NOZZLE_TO_PROBE_OFFSET

◆ z_offset_step

const float z_offset_step = 1.0F / float(axis_steps_per_unit[2])

◆ z_offset_min

const float z_offset_min = Z_OFFSET_MIN

◆ z_offset_max

const float z_offset_max = Z_OFFSET_MAX

◆ zoffset_fl_range

const float zoffset_fl_range[3] = { z_offset_min, z_offset_max, z_offset_step }

◆ zoffset_fl_format

const char* zoffset_fl_format = "%.3f"

◆ nozzle_range

const int32_t nozzle_range[3] = { 0, (HEATER_0_MAXTEMP - 15) * 1000, 1000 }

◆ heatbed_range

const int32_t heatbed_range[3] = { 0, BED_MAXTEMP * 1000, 1000 }

◆ printfan_range

const int32_t printfan_range[3] = { 0, 255000, 1000 }

◆ flowfact_range

const int32_t flowfact_range[3] = { 50000, 150000, 1000 }

◆ feedrate_range

const int32_t feedrate_range[3] = { 10000, 255000, 1000 }

◆ move_x

const int32_t move_x[3] = { (int32_t)(X_MIN_POS * 1000), (int32_t)(X_MAX_POS * 1000), 1000 }

◆ move_y

const int32_t move_y[3] = { (int32_t)(Y_MIN_POS * 1000), (int32_t)(Y_MAX_POS * 1000), 1000 }

◆ move_z

const int32_t move_z[3] = { (int32_t)(Z_MIN_POS * 1000), (int32_t)(Z_MAX_POS * 1000), 1000 }

◆ move_e

const int32_t move_e[3] = { -EXTRUDE_MAXLENGTH * 1000, EXTRUDE_MAXLENGTH * 1000, 1000 }

◆ manual_feedrate

const int32_t manual_feedrate[4] = MANUAL_FEEDRATE

◆ extrude_min_temp

const int32_t extrude_min_temp = EXTRUDE_MINTEMP

◆ park_points

constexpr const int park_points[3] = NOZZLE_PARK_POINT
constexpr

◆ X_home

constexpr const int X_home = X_HOME_DIR > 0 ? X_MAX_POS : X_MIN_POS
constexpr

◆ Y_home

constexpr const int Y_home = Y_HOME_DIR > 0 ? Y_MAX_POS : Y_MIN_POS
constexpr

◆ Z_home

constexpr const int Z_home = Z_HOME_DIR > 0 ? Z_MAX_POS : Z_MIN_POS
constexpr

◆ X_home_gcode

constexpr const char X_home_gcode[]
constexpr
Initial value:
= {
'G',
'9',
'2',
' ',
'X',
}

◆ Y_home_gcode

constexpr const char Y_home_gcode[]
constexpr
Initial value:
= {
'G',
'9',
'2',
' ',
'Y',
}

◆ Z_home_gcode

constexpr const char Z_home_gcode[]
constexpr
Initial value:
= {
'G',
'9',
'2',
' ',
'Z',
}

◆ filament_change_slow_load_length

constexpr const int32_t filament_change_slow_load_length = FILAMENT_CHANGE_SLOW_LOAD_LENGTH
constexpr

◆ filament_change_fast_load_length

constexpr const int32_t filament_change_fast_load_length = FILAMENT_CHANGE_FAST_LOAD_LENGTH
constexpr

◆ filament_change_slow_purge_length

constexpr const int32_t filament_change_slow_purge_length = 40
constexpr

◆ filament_unload_mini_length

constexpr const float filament_unload_mini_length = 392.0F
constexpr

◆ filament_change_full_load_length

constexpr const int32_t filament_change_full_load_length = filament_change_fast_load_length + filament_change_slow_load_length
constexpr

◆ filament_change_full_purge_load_length

constexpr const int32_t filament_change_full_purge_load_length = filament_change_full_load_length + filament_change_slow_purge_length
constexpr
Z_home
constexpr const int Z_home
Definition: menu_vars.cpp:52
X_home
constexpr const int X_home
Definition: menu_vars.cpp:50
nth_char
constexpr char nth_char(int32_t i, size_t n)
Definition: int_to_cstr.h:49
Y_home
constexpr const int Y_home
Definition: menu_vars.cpp:51