This commit is contained in:
2025-07-28 17:32:41 +03:00
parent a96682bc12
commit c39496ff25
3 changed files with 35 additions and 13 deletions

View File

@@ -20,10 +20,7 @@ enum class MccMountTelemetryErrorCode : int { ERROR_OK, ERROR_HARDWARE };
struct MccMountTelemetryCategory : public std::error_category {
MccMountTelemetryCategory() : 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
{
@@ -105,7 +102,7 @@ struct MccMountTelemetryData {
coord_t mntRateX, mntRateY;
// current refraction coefficients
typename PEC_T::pec_result_t currRefrCoeffs;
typename ASTROM_ENGINE_T::refract_result_t currRefrCoeffs;
// current refraction correction (for mntALT)
coord_t currRefr;
@@ -144,6 +141,8 @@ public:
typedef std::function<void(mount_telemetry_data_t)> update_callback_func_t;
typedef std::list<update_callback_func_t> update_callback_container_t;
typedef std::list<std::shared_ptr<std::packaged_task<update_callback_func_t>>> cc_t;
MccMountTelemetry(astrom_engine_t& astrom_engine, pec_t& pec, hardware_t& hardware)
: base_t(astrom_engine, pec), _hardware(hardware)
{