This commit is contained in:
2025-08-08 23:50:55 +03:00
parent c45d17b236
commit b99263a014
11 changed files with 709 additions and 197 deletions

View File

@@ -143,7 +143,7 @@ public:
typename ASTROM_ENGINE_T::coord_t xdiff, ydiff, r2;
};
MccMountTelemetry(astrom_engine_t& astrom_engine, pec_t& pec, hardware_t& hardware)
MccMountTelemetry(astrom_engine_t* astrom_engine, pec_t* pec, hardware_t* hardware)
: base_t(astrom_engine, pec), _hardware(hardware)
{
}
@@ -221,7 +221,7 @@ public:
typename hardware_t::axes_pos_t ax_pos;
auto err = _hardware.getPos(ax_pos);
auto err = _hardware->getPos(ax_pos);
if (err) {
if constexpr (std::same_as<error_t, decltype(err)>) {
return err;
@@ -357,7 +357,7 @@ public:
protected:
mount_telemetry_data_t _data{};
hardware_t& _hardware;
hardware_t* _hardware;
std::unique_ptr<std::mutex> _updateMutex;
std::unique_ptr<std::condition_variable> _updateCondVar;