From c174021c40ffbfb46ddeecae7b17ade8ed60a94a Mon Sep 17 00:00:00 2001 From: "Timur A. Fatkhullin" Date: Mon, 16 Feb 2026 22:44:29 +0300 Subject: [PATCH] ... --- include/mcc/mcc_movement_controls.h | 17 ++++++++++++----- include/mcc/mcc_telemetry.h | 5 +++-- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/include/mcc/mcc_movement_controls.h b/include/mcc/mcc_movement_controls.h index 2b4c44c..2ba157f 100644 --- a/include/mcc/mcc_movement_controls.h +++ b/include/mcc/mcc_movement_controls.h @@ -219,6 +219,14 @@ protected: public: PathFile(const std::string& filename = "") : _filename(filename), _st() {} + PathFile(const PathFile&) = delete; + PathFile(PathFile&&) = default; + + ~PathFile() + { + save(); + } + void setFilename(const std::string& filename) { _filename = filename; @@ -229,11 +237,6 @@ protected: return _filename; } - ~PathFile() - { - save(); - } - friend PathFile& operator<<(PathFile& pf, auto&& v) { pf._st << std::forward(v); @@ -715,6 +718,10 @@ public: }; } + virtual ~MccSimpleMovementControls() = default; + + MccSimpleMovementControls(const MccSimpleMovementControls&) = delete; + MccSimpleMovementControls(MccSimpleMovementControls&&) = default; error_t slewToTarget(bool slew_and_stop = false) { diff --git a/include/mcc/mcc_telemetry.h b/include/mcc/mcc_telemetry.h index 5386918..2a6a023 100644 --- a/include/mcc/mcc_telemetry.h +++ b/include/mcc/mcc_telemetry.h @@ -362,9 +362,10 @@ public: // // Set a timeout for the telemetry receiving process // - void setTelemetryDataTimeout(traits::mcc_time_duration_c auto const& timeout) + template + void setTelemetryDataTimeout(DT const& timeout) { - if constexpr (std::floating_point) { + if constexpr (std::floating_point) { if (utils::isEqual(timeout.count(), 0.0) || timeout.count() < 0.0) { return; }