...
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#include "asibfm700_mount.h"
|
||||
|
||||
#include <mcc_pzone.h>
|
||||
|
||||
namespace asibfm700
|
||||
{
|
||||
|
||||
@@ -20,8 +22,30 @@ Asibfm700Mount::Asibfm700Mount(Asibfm700MountConfig const& config,
|
||||
Asibfm700StartState{})
|
||||
{
|
||||
logDebug("Create Asibfm700Mount class instance ({})", this->getThreadId());
|
||||
|
||||
logInfo("Init AstroSib FM-700 mount with configuration:");
|
||||
logInfo(" site latitude: {}", config.siteLatitude.sexagesimal());
|
||||
logInfo(" site longitude: {}", config.siteLongitude.sexagesimal());
|
||||
logInfo(" site elevation: {} meters", config.siteElevation);
|
||||
logInfo(" refraction wavelength: {} mkm", config.refractWavelength);
|
||||
logInfo(" leap seconds filename: {}", config.leapSecondFilename);
|
||||
logInfo(" IERS Bulletin A filename: {}", config.bulletinAFilename);
|
||||
|
||||
logInfo("Add prohibited zones ...");
|
||||
|
||||
logInfo("Add MccAltLimitPZ zone: min alt = {}, lat = {}", config.pzMinAltitude.degrees(),
|
||||
config.siteLatitude.degrees());
|
||||
addPZone(mcc::MccAltLimitPZ<mcc::MccAltLimitKind::MIN_ALT_LIMIT>{config.pzMinAltitude, config.siteLatitude, this});
|
||||
|
||||
logInfo("Add MccAxisLimitSwitchPZ zone: min value = {}, max value = {}", config.pzLimitSwitchHAMin,
|
||||
config.pzLimitSwitchHAMax);
|
||||
size_t pz_num = addPZone(mcc::MccAxisLimitSwitchPZ<mcc::MccCoordKind::COORDS_KIND_HA>{
|
||||
config.pzLimitSwitchHAMin, config.pzLimitSwitchHAMax, this});
|
||||
|
||||
logInfo("{} prohibited zones were added", pz_num);
|
||||
}
|
||||
|
||||
|
||||
Asibfm700Mount::~Asibfm700Mount()
|
||||
{
|
||||
logDebug("Delete Asibfm700Mount class instance ({})", this->getThreadId());
|
||||
|
||||
Reference in New Issue
Block a user