This commit is contained in:
2025-11-03 18:27:43 +03:00
parent 6fc0b8bb4e
commit 15cf04f164
4 changed files with 69 additions and 22 deletions

View File

@@ -156,6 +156,18 @@ public:
enum class mount_status_t : int { IDLE, INITIALIZATION, STOPPED, SLEWING, ADJUSTING, TRACKING, ERROR };
static constexpr std::string_view mountStatusStr(mount_status_t status)
{
return status == mount_status_t::IDLE ? "IDLE"
: mount_status_t::INITIALIZATION ? "INIT"
: mount_status_t::STOPPED ? "STOP"
: mount_status_t::SLEWING ? "SLEW"
: mount_status_t::ADJUSTING ? "ADJST"
: mount_status_t::TRACKING ? "TRACK"
: mount_status_t::ERROR ? "ERR"
: "UNKNOWN";
}
template <typename... HardwareCtorArgTs,
typename... TelemetryCtorArgTs,
typename... PZoneContCtorArgTs,