...
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user