From b2105d294841ea21fa4c2876f12f3cb0c3be82b8 Mon Sep 17 00:00:00 2001 From: pmoegenburg Date: Mon, 12 Aug 2024 16:17:53 -0400 Subject: [PATCH] refactor --- include/motor-control/core/stepper_motor/motion_controller.hpp | 3 +++ include/motor-control/core/tasks/motion_controller_task.hpp | 3 --- include/pipettes/core/tasks/motion_controller_task.hpp | 3 --- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/include/motor-control/core/stepper_motor/motion_controller.hpp b/include/motor-control/core/stepper_motor/motion_controller.hpp index f591c344c..6f3267fcc 100644 --- a/include/motor-control/core/stepper_motor/motion_controller.hpp +++ b/include/motor-control/core/stepper_motor/motion_controller.hpp @@ -12,6 +12,9 @@ #include "motor-control/core/types.hpp" #include "motor-control/core/utils.hpp" +constexpr uint32_t DIAG0_DEBOUNCE_REPS = 9; +constexpr uint32_t DIAG0_DEBOUNCE_DELAY = 100; + namespace motion_controller { using namespace motor_messages; diff --git a/include/motor-control/core/tasks/motion_controller_task.hpp b/include/motor-control/core/tasks/motion_controller_task.hpp index 64f02ccc7..74f6e6ca7 100644 --- a/include/motor-control/core/tasks/motion_controller_task.hpp +++ b/include/motor-control/core/tasks/motion_controller_task.hpp @@ -10,9 +10,6 @@ #include "motor-control/core/tasks/messages.hpp" #include "motor-control/core/tasks/tmc_motor_driver_common.hpp" -constexpr uint32_t DIAG0_DEBOUNCE_REPS = 9; -constexpr uint32_t DIAG0_DEBOUNCE_DELAY = 100; - namespace motion_controller_task { using TaskMessage = motor_control_task_messages::MotionControlTaskMessage; diff --git a/include/pipettes/core/tasks/motion_controller_task.hpp b/include/pipettes/core/tasks/motion_controller_task.hpp index f4a9efbd5..5c9db1062 100644 --- a/include/pipettes/core/tasks/motion_controller_task.hpp +++ b/include/pipettes/core/tasks/motion_controller_task.hpp @@ -11,9 +11,6 @@ #include "motor-control/core/tasks/usage_storage_task.hpp" #include "pipettes/core/tasks/messages.hpp" -constexpr uint32_t DIAG0_DEBOUNCE_REPS = 9; -constexpr uint32_t DIAG0_DEBOUNCE_DELAY = 100; - namespace pipettes { namespace tasks {