This commit is contained in:
2025-08-06 02:06:20 +03:00
parent 138e4bf84d
commit 6315d5e18e
15 changed files with 630 additions and 152 deletions

View File

@@ -164,6 +164,27 @@ public:
init(telemetry, hardware, prohibited_zone);
}
MccSimpleGuidingModel(MccSimpleGuidingModel&& other)
: _guidingFunc(std::move(other._guidingFunc)),
_doCorrection(other._doCorrection.load()),
_stopRequested(other._stopRequested.load())
{
}
MccSimpleGuidingModel& operator=(MccSimpleGuidingModel&& other)
{
if (this == &other) {
return *this;
}
_guidingFunc = std::move(other._guidingFunc);
_doCorrection = other._doCorrection.load();
_stopRequested = other._stopRequested.load();
return *this;
}
virtual ~MccSimpleGuidingModel()
{
logDebug(std::format("Delete 'MccSimpleGuidingModel' class instance ({})", (void*)this));
@@ -333,4 +354,6 @@ protected:
}
};
// static_assert(std::movable<MccSimpleGuidingModel<>>);
} // namespace mcc