Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
750da71d1This file is pinned to the selected release. Download the original to open it in your design tool.
#include "menu_vars.h"
#include "config.h"
#include "int_to_cstr.h"
#include "../Marlin/src/inc/MarlinConfig.h"
#include "../Marlin/src/module/temperature.h"
#if (PRINTER_TYPE == PRINTER_PRUSA_MINI)
#include "gui_config_mini.h"
#endif
extern "C"
{
const int x_axis_len = X_LEN;
const int y_axis_len = Y_LEN;
const int z_axis_len = Z_LEN;
// tolerance (common for all axes)
const int len_tol_abs = LEN_TOL_ABS;// length absolute tolerance (+-5mm)
const int len_tol_rev = LEN_TOL_REV; // length tolerance in reversed direction (3mm)
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] = {50000, 300000, 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}; // +/- 2 ->will be reset to +/- 1
const int32_t manual_feedrate[4] = MANUAL_FEEDRATE;
const int32_t extrude_min_temp = EXTRUDE_MINTEMP;
//must be in this file, need to access marlin
constexpr const int park_points[3] = NOZZLE_PARK_POINT;
//min int -2147483648 .. 8 digits + 1 for /0
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 char X_home_gcode[] =
{
'G',
'9',
'2',
' ',
'X',
nth_char(X_home,0),
nth_char(X_home,1),
nth_char(X_home,2),
nth_char(X_home,3),
nth_char(X_home,4),
nth_char(X_home,5),
nth_char(X_home,6),
nth_char(X_home,7),
nth_char(X_home,8)
};
constexpr const char Y_home_gcode[] =
{
'G',
'9',
'2',
' ',
'Y',
nth_char(Y_home,0),
nth_char(Y_home,1),
nth_char(Y_home,2),
nth_char(Y_home,3),
nth_char(Y_home,4),
nth_char(Y_home,5),
nth_char(Y_home,6),
nth_char(Y_home,7),
nth_char(Y_home,8)
};
}