From a20f4d20eab688c1a48a986e630d8ed426faece4 Mon Sep 17 00:00:00 2001 From: JM Date: Sat, 26 Oct 2024 10:46:38 +0100 Subject: [PATCH 1/5] Updated speeds. --- src/configuration.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/configuration.h b/src/configuration.h index f90eef6..c52b6df 100644 --- a/src/configuration.h +++ b/src/configuration.h @@ -99,7 +99,7 @@ class Configuration { const float kSweepAngles_degrees_[kSizeOfSweepAngles_] = {45.0F, 90.0F, 180.0F, 360.0F}; ///< Lookup table for sweep angles (degrees) during oscillation. const uint8_t kDefaultSweepAngleIndex_ = 0; ///< Index of initial/default sweep angle, i.e., 45 degrees. static const uint8_t kSizeOfSpeeds_ = 4; ///< No. of speeds in the lookup table. - const float kSpeeds_RPM_[kSizeOfSpeeds_] = {5.0F, 10.0F, 15.0F, 20.0F}; ///< Lookup table for rotation speeds (RPM). + const float kSpeeds_RPM_[kSizeOfSpeeds_] = {7.0F, 10.0F, 13.0F, 16.0F}; ///< Lookup table for rotation speeds (RPM). const uint8_t kDefaultSpeedIndex_ = 0; ///< Index of initial/default speed, i.e., 5 RPM. const float kAcceleration_microsteps_per_s_per_s_ = 6000.0; //8000.0; ///< Acceleration (microsteps per second-squared). const mt::StepperDriver::AccelerationAlgorithm kAccelerationAlgorithm_ = mt::StepperDriver::AccelerationAlgorithm::kMorgridge24; ///< Acceleration algorithm. From 412cfd019306f29504281f99b7405668e017f9fb Mon Sep 17 00:00:00 2001 From: JM Date: Sat, 26 Oct 2024 10:49:54 +0100 Subject: [PATCH 2/5] Updated version to 1.0.0. --- src/version.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/version.h b/src/version.h index 0461671..7308908 100644 --- a/src/version.h +++ b/src/version.h @@ -17,7 +17,7 @@ inline constexpr char* kName = "mtspin-mcu-firmware-"; inline constexpr uint16_t kMajor = 1; inline constexpr uint16_t kMinor = 0; inline constexpr uint16_t kPatch = 0; -inline constexpr char* kSuffix = "-rc.1"; +inline constexpr char* kSuffix = ""; } // namespace mtspin From aa991658b65a92e937a68efb295a2b4b05dc1fa6 Mon Sep 17 00:00:00 2001 From: JM Date: Sat, 26 Oct 2024 11:03:06 +0100 Subject: [PATCH 3/5] Moved UML diagram to images folder. --- README.md | 2 +- {docs => images}/uml-class-diagram-overview.png | Bin 2 files changed, 1 insertion(+), 1 deletion(-) rename {docs => images}/uml-class-diagram-overview.png (100%) diff --git a/README.md b/README.md index 2095e8b..acd4d74 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ The following libraries (available via the [Arduino library manager](https://www The image below shows a high level overview of the system: -![UML class diagram](docs/uml-class-diagram-overview.png) +![UML class diagram](images/uml-class-diagram-overview.png) ## Setup and build diff --git a/docs/uml-class-diagram-overview.png b/images/uml-class-diagram-overview.png similarity index 100% rename from docs/uml-class-diagram-overview.png rename to images/uml-class-diagram-overview.png From 7f5b166fcde2f84dea5da1dfafbd7a0ab28782ce Mon Sep 17 00:00:00 2001 From: JM Date: Sat, 9 Nov 2024 16:28:19 +0000 Subject: [PATCH 4/5] Updated comments. --- src/configuration.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/configuration.h b/src/configuration.h index c52b6df..0d89985 100644 --- a/src/configuration.h +++ b/src/configuration.h @@ -91,16 +91,16 @@ class Configuration { // Stepper driver properties. const uint16_t kMicrostepMode_ = 32; ///< Stepper driver microstep mode. - const float kPulDelay_us_ = 1.0; ///< Minimum delay (us) for the stepper driver PUL pin. 2.5 for TB6600 is not required since the library functions are slow enough. + const float kPulDelay_us_ = 1.0; ///< Minimum delay (us) for the stepper driver PUL pin. const float kDirDelay_us_ = 5.0F; ///< Minimum delay (us) for the stepper driver Dir pin. const float kEnaDelay_us_ = 5.0F; ///< Minimum delay (us) for the stepper driver Ena pin. const mt::StepperDriver::MotionDirection kDefaultMotionDirection_ = mt::StepperDriver::MotionDirection::kPositive; ///< Initial/default motion direction (Clockwise (CW)). static const uint8_t kSizeOfSweepAngles_ = 4; ///< No. of sweep angles in the lookup table. const float kSweepAngles_degrees_[kSizeOfSweepAngles_] = {45.0F, 90.0F, 180.0F, 360.0F}; ///< Lookup table for sweep angles (degrees) during oscillation. - const uint8_t kDefaultSweepAngleIndex_ = 0; ///< Index of initial/default sweep angle, i.e., 45 degrees. + const uint8_t kDefaultSweepAngleIndex_ = 0; ///< Index of initial/default sweep angle. static const uint8_t kSizeOfSpeeds_ = 4; ///< No. of speeds in the lookup table. const float kSpeeds_RPM_[kSizeOfSpeeds_] = {7.0F, 10.0F, 13.0F, 16.0F}; ///< Lookup table for rotation speeds (RPM). - const uint8_t kDefaultSpeedIndex_ = 0; ///< Index of initial/default speed, i.e., 5 RPM. + const uint8_t kDefaultSpeedIndex_ = 0; ///< Index of initial/default speed. const float kAcceleration_microsteps_per_s_per_s_ = 6000.0; //8000.0; ///< Acceleration (microsteps per second-squared). const mt::StepperDriver::AccelerationAlgorithm kAccelerationAlgorithm_ = mt::StepperDriver::AccelerationAlgorithm::kMorgridge24; ///< Acceleration algorithm. From f98bb0a38ff4f7b05438c6e75591f41073a37d24 Mon Sep 17 00:00:00 2001 From: JM Date: Sat, 9 Nov 2024 16:34:18 +0000 Subject: [PATCH 5/5] Updated stepper driver library version. --- arduino-libs.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arduino-libs.txt b/arduino-libs.txt index ec065cc..105e9ba 100644 --- a/arduino-libs.txt +++ b/arduino-libs.txt @@ -1,3 +1,3 @@ MT-arduino-momentary-button@3.0.0 -MT-arduino-stepper-driver@2.0.0 +MT-arduino-stepper-driver@3.0.0 ArduinoLog@1.1.1 \ No newline at end of file