Skip to content

Commit

Permalink
Set park type per dome type
Browse files Browse the repository at this point in the history
  • Loading branch information
knro committed Oct 9, 2023
1 parent b387858 commit 7eb8462
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/dome/dome_script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ const char *DomeScript::getDefaultName()
bool DomeScript::initProperties()
{
INDI::Dome::initProperties();
SetParkDataType(PARK_AZ);
#if defined(__APPLE__)
ScriptsTP[SCRIPT_FOLDER].fill("SCRIPT_FOLDER", "Folder", "/usr/local/share/indi/scripts");
#else
Expand Down Expand Up @@ -88,9 +87,15 @@ bool DomeScript::initProperties()
TypeSP.load();

if (TypeSP[Dome].getState() == ISS_ON)
{
SetParkDataType(PARK_AZ);
SetDomeCapability(DOME_CAN_PARK | DOME_CAN_ABORT | DOME_CAN_ABS_MOVE | DOME_HAS_SHUTTER);
}
else
{
SetParkDataType(PARK_NONE);
SetDomeCapability(DOME_CAN_PARK | DOME_CAN_ABORT);
}

setDefaultPollingPeriod(2000);
return true;
Expand Down

0 comments on commit 7eb8462

Please sign in to comment.