...
This commit is contained in:
@@ -49,7 +49,10 @@ namespace mcc
|
||||
struct MccSimpleGuidingModelCategory : public std::error_category {
|
||||
MccSimpleGuidingModelCategory() : std::error_category() {}
|
||||
|
||||
const char* name() const noexcept { return "ADC_GENERIC_DEVICE"; }
|
||||
const char* name() const noexcept
|
||||
{
|
||||
return "ADC_GENERIC_DEVICE";
|
||||
}
|
||||
|
||||
std::string message(int ec) const
|
||||
{
|
||||
@@ -169,13 +172,27 @@ public:
|
||||
}
|
||||
|
||||
|
||||
error_t guiding(guiding_point_t guiding_point) { return _guidingFunc(std::move(guiding_point)); }
|
||||
error_t guiding(guiding_point_t guiding_point)
|
||||
{
|
||||
return _guidingFunc(std::move(guiding_point));
|
||||
}
|
||||
|
||||
error_t stopGuiding(bool off) { _doCorrection = off; }
|
||||
error_t stopGuiding(bool off)
|
||||
{
|
||||
_doCorrection = off;
|
||||
|
||||
bool inGuiding() { return _doCorrection; }
|
||||
return MccSimpleGuidingModelErrorCode::ERROR_OK;
|
||||
}
|
||||
|
||||
error_t stop() { return MccSimpleGuidingModelErrorCode::ERROR_OK; }
|
||||
bool inGuiding()
|
||||
{
|
||||
return _doCorrection;
|
||||
}
|
||||
|
||||
error_t stop()
|
||||
{
|
||||
return MccSimpleGuidingModelErrorCode::ERROR_OK;
|
||||
}
|
||||
|
||||
protected:
|
||||
std::function<error_t(guiding_point_t)> _guidingFunc{};
|
||||
@@ -184,7 +201,7 @@ protected:
|
||||
|
||||
|
||||
|
||||
error_t init(auto* p_telemetry, auto* p_hardware, auto* p_prohibited_zones)
|
||||
void init(auto* p_telemetry, auto* p_hardware, auto* p_prohibited_zones)
|
||||
{
|
||||
// deduce controls types
|
||||
// deduce controls types
|
||||
|
||||
Reference in New Issue
Block a user