poprawki
This commit is contained in:
+8
-7
@@ -14,10 +14,10 @@ constexpr float WORKSPACE_HEIGHT_MM = 210.0f;
|
||||
constexpr float STEPS_PER_MM_X = 80.0f;
|
||||
constexpr float STEPS_PER_MM_Y = 80.0f;
|
||||
|
||||
constexpr float SPEED_DEFAULT_MM_S = 60.0f;
|
||||
constexpr float SPEED_DEFAULT_MM_S = 50.0f;
|
||||
constexpr float SPEED_MIN_MM_S = 10.0f;
|
||||
constexpr float SPEED_MAX_MM_S = 150.0f;
|
||||
constexpr float ACCEL_MM_S2 = 500.0f;
|
||||
constexpr float ACCEL_MM_S2 = 500.0f; // Przyspieszenie łagodne, np. 2000, za szybko.
|
||||
|
||||
// ── Homing ───────────────────────────────────────────────────────────────────
|
||||
// Krańcówki wyzwalają się gdy głowica jest w PRAWYM GÓRNYM rogu KARTKI.
|
||||
@@ -47,7 +47,7 @@ constexpr int SERVO_SETTLE_MS = 150; // czas opadnięcia serwa [ms]
|
||||
constexpr uint8_t PIN_X_STEP = 26;
|
||||
constexpr uint8_t PIN_X_DIR = 27;
|
||||
constexpr uint8_t PIN_Y_STEP = 14;
|
||||
constexpr uint8_t PIN_Y_DIR = 15; // GPIO15 — bezpieczny zamiennik (GPIO16 niedostępny)
|
||||
constexpr uint8_t PIN_Y_DIR = 15;
|
||||
constexpr uint8_t PIN_STEPPER_EN = 13; // aktywny LOW
|
||||
|
||||
// Wyłączniki krańcowe (INPUT_PULLUP, aktywny LOW — wyzwolony = LOW)
|
||||
@@ -81,8 +81,8 @@ constexpr uint8_t FILENAME_MAX_LEN = 64;
|
||||
// ── Timery UI ────────────────────────────────────────────────────────────────
|
||||
constexpr uint32_t DISPLAY_UPDATE_MS = 200;
|
||||
constexpr uint32_t BUTTON_DEBOUNCE_MS = 50;
|
||||
constexpr uint32_t BOOT_HOLD_MS = 2000;
|
||||
constexpr uint32_t STEPPER_IDLE_TIMEOUT_MS = 5000; // auto-wyłączenie silników po bezczynności [ms], 0=wyłącz
|
||||
constexpr uint32_t BOOT_HOLD_MS = 1000;
|
||||
constexpr uint32_t STEPPER_IDLE_TIMEOUT_MS = 2000; // auto-wyłączenie silników po bezczynności [ms], 0=wyłącz
|
||||
|
||||
// ── Stany aplikacji ───────────────────────────────────────────────────────────
|
||||
enum class AppState : uint8_t {
|
||||
@@ -95,8 +95,9 @@ enum class AppState : uint8_t {
|
||||
ERROR
|
||||
};
|
||||
|
||||
constexpr float TEST_STEP_MM = 1.0f; // krok na jedno naciśnięcie w trybie testowym [mm]
|
||||
constexpr float TEST_SPEED_MM_S = 5.0f; // prędkość w trybie testowym [mm/s]
|
||||
// Ustalenie prędkości dla trybu testowego
|
||||
constexpr float TEST_STEP_MM = 10.0f; //1.0f; // krok na jedno naciśnięcie w trybie testowym [mm]
|
||||
constexpr float TEST_SPEED_MM_S = 40.0f; //5.0f; // prędkość w trybie testowym [mm/s]
|
||||
|
||||
// ── Komendy GCode ────────────────────────────────────────────────────────────
|
||||
enum class GCodeCmd : uint8_t {
|
||||
|
||||
Reference in New Issue
Block a user