Skip to content

Commit

Permalink
Migrate ActiveDeviceTP to new property standard
Browse files Browse the repository at this point in the history
  • Loading branch information
knro committed Mar 27, 2024
1 parent d494b3e commit 223db9d
Show file tree
Hide file tree
Showing 9 changed files with 102 additions and 100 deletions.
14 changes: 7 additions & 7 deletions drivers/ccd/ccd_simulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ bool CCDSim::initProperties()
IPS_IDLE);

// FWHM
auto focuser = ActiveDeviceT[ACTIVE_FOCUSER].text ? ActiveDeviceT[ACTIVE_FOCUSER].text : "";
auto focuser = ActiveDeviceTP[ACTIVE_FOCUSER].getText() ? ActiveDeviceTP[ACTIVE_FOCUSER].getText() : "";
IUFillNumber(&FWHMN[0], "SIM_FWHM", "FWHM (arcseconds)", "%4.2f", 0, 60, 0, 7.5);
IUFillNumberVector(&FWHMNP, FWHMN, 1, focuser, "FWHM", "FWHM", OPTIONS_TAB, IP_RO, 60, IPS_IDLE);

Expand Down Expand Up @@ -198,15 +198,14 @@ bool CCDSim::initProperties()
}
ResolutionSP.fill(getDeviceName(), "CCD_RESOLUTION", "Resolution", SIMULATOR_TAB, IP_RW, ISR_1OFMANY, 60, IPS_IDLE);

auto mount = ActiveDeviceT[ACTIVE_TELESCOPE].text ? ActiveDeviceT[ACTIVE_TELESCOPE].text : "";
auto mount = ActiveDeviceTP[ACTIVE_TELESCOPE].getText() ? ActiveDeviceTP[ACTIVE_TELESCOPE].getText() : "";

#ifdef USE_EQUATORIAL_PE
IDSnoopDevice(mount, "EQUATORIAL_PE");
#else
IDSnoopDevice(mount, "EQUATORIAL_EOD_COORD");
#endif


IDSnoopDevice(focuser, "FWHM");

uint32_t cap = 0;
Expand Down Expand Up @@ -539,7 +538,8 @@ int CCDSim::DrawCcdFrame(INDI::CCDChip * targetChip)

exposure_time *= (1 + sqrt(GainNP[0].getValue()));

auto targetFocalLength = ScopeInfoNP[FOCAL_LENGTH].getValue() > 0 ? ScopeInfoNP[FOCAL_LENGTH].getValue() : snoopedFocalLength;
auto targetFocalLength = ScopeInfoNP[FOCAL_LENGTH].getValue() > 0 ? ScopeInfoNP[FOCAL_LENGTH].getValue() :
snoopedFocalLength;

if (ShowStarField)
{
Expand Down Expand Up @@ -1293,11 +1293,11 @@ void CCDSim::activeDevicesUpdated()
#ifdef USE_EQUATORIAL_PE
IDSnoopDevice(ActiveDeviceT[0].text, "EQUATORIAL_PE");
#else
IDSnoopDevice(ActiveDeviceT[ACTIVE_TELESCOPE].text, "EQUATORIAL_EOD_COORD");
IDSnoopDevice(ActiveDeviceTP[ACTIVE_TELESCOPE].getText(), "EQUATORIAL_EOD_COORD");
#endif
IDSnoopDevice(ActiveDeviceT[ACTIVE_FOCUSER].text, "FWHM");
IDSnoopDevice(ActiveDeviceTP[ACTIVE_FOCUSER].getText(), "FWHM");

strncpy(FWHMNP.device, ActiveDeviceT[ACTIVE_FOCUSER].text, MAXINDIDEVICE);
strncpy(FWHMNP.device, ActiveDeviceTP[ACTIVE_FOCUSER].getText(), MAXINDIDEVICE);
}

bool CCDSim::ISSnoopDevice(XMLEle * root)
Expand Down
21 changes: 12 additions & 9 deletions drivers/ccd/guide_simulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ GuideSim::GuideSim()
bool GuideSim::SetupParms()
{
int nbuf;
SetCCDParams(SimulatorSettingsNP[SIM_XRES].getValue(), SimulatorSettingsNP[SIM_YRES].getValue(), 16, SimulatorSettingsNP[SIM_XSIZE].getValue(),
SetCCDParams(SimulatorSettingsNP[SIM_XRES].getValue(), SimulatorSettingsNP[SIM_YRES].getValue(), 16,
SimulatorSettingsNP[SIM_XSIZE].getValue(),
SimulatorSettingsNP[SIM_YRES].getValue());

if (HasCooler())
Expand All @@ -64,7 +65,8 @@ bool GuideSim::SetupParms()
bias = SimulatorSettingsNP[SIM_BIAS].getValue();
limitingmag = SimulatorSettingsNP[SIM_BIAS].getValue();
saturationmag = SimulatorSettingsNP[SIM_SATURATION].getValue();
OAGoffset = SimulatorSettingsNP[SIM_OAGOFFSET].getValue(); // An oag is offset this much from center of scope position (arcminutes);
OAGoffset =
SimulatorSettingsNP[SIM_OAGOFFSET].getValue(); // An oag is offset this much from center of scope position (arcminutes);
polarError = SimulatorSettingsNP[SIM_POLAR].getValue();
polarDrift = SimulatorSettingsNP[SIM_POLARDRIFT].getValue();
rotationCW = SimulatorSettingsNP[SIM_ROTATION].getValue();
Expand Down Expand Up @@ -165,9 +167,9 @@ bool GuideSim::initProperties()
ToggleTimeoutSP.fill(getDeviceName(), "CCD_TIMEOUT", "Timeout", SIMULATOR_TAB, IP_RW, ISR_1OFMANY, 60, IPS_IDLE);

#ifdef USE_EQUATORIAL_PE
IDSnoopDevice(ActiveDeviceT[0].text, "EQUATORIAL_PE");
IDSnoopDevice(ActiveDeviceTP[0].getText(), "EQUATORIAL_PE");
#else
IDSnoopDevice(ActiveDeviceT[ACTIVE_TELESCOPE].text, "EQUATORIAL_EOD_COORD");
IDSnoopDevice(ActiveDeviceTP[ACTIVE_TELESCOPE].getText(), "EQUATORIAL_EOD_COORD");
#endif

uint32_t cap = 0;
Expand Down Expand Up @@ -394,7 +396,8 @@ int GuideSim::DrawCcdFrame(INDI::CCDChip * targetChip)

exposure_time *= (1 + sqrt(GainNP[0].getValue()));

auto targetFocalLength = ScopeInfoNP[FOCAL_LENGTH].getValue() > 0 ? ScopeInfoNP[FOCAL_LENGTH].getValue() : snoopedFocalLength;
auto targetFocalLength = ScopeInfoNP[FOCAL_LENGTH].getValue() > 0 ? ScopeInfoNP[FOCAL_LENGTH].getValue() :
snoopedFocalLength;

if (ShowStarField)
{
Expand Down Expand Up @@ -597,15 +600,15 @@ int GuideSim::DrawCcdFrame(INDI::CCDChip * targetChip)
// remember it is the center of the simulated image
double J2_mnt_d_rar = king_gamma * sin(J2decr) * sin(JnHAr - king_theta) / cos(J2decr);
double J2_mnt_rar = rar - J2_mnt_d_rar
; // rad = currentRA * 15.0; rar = rad * 0.0174532925; currentRA = J2000Pos.ra / 15.0;
; // rad = currentRA * 15.0; rar = rad * 0.0174532925; currentRA = J2000Pos.ra / 15.0;

// Imagine the HA axis points to HA=0, dec=89deg, then in the mount's coordinate
// system a star at true dec = 88 is seen at 89 deg in the mount's system
// Or in other words: if one uses the setting circle, that is the mount system,
// and set it to 87 deg then the real location is at 88 deg.
double J2_mnt_d_decr = king_gamma * cos(JnHAr - king_theta);
double J2_mnt_decr = decr + J2_mnt_d_decr
; // decr = cameradec * 0.0174532925; cameradec = currentDE + OAGoffset / 60; currentDE = J2000Pos.dec;
; // decr = cameradec * 0.0174532925; cameradec = currentDE + OAGoffset / 60; currentDE = J2000Pos.dec;
// IDLog("raw mod ra : %8.3f, dec: %8.3f (degree)\n", J2_mnt_rar / 0.0174532925, J2_mnt_decr / 0.0174532925 );
if (J2_mnt_decr > M_PI / 2.)
{
Expand Down Expand Up @@ -1118,9 +1121,9 @@ bool GuideSim::ISNewSwitch(const char * dev, const char * name, ISState * states
void GuideSim::activeDevicesUpdated()
{
#ifdef USE_EQUATORIAL_PE
IDSnoopDevice(ActiveDeviceT[0].text, "EQUATORIAL_PE");
IDSnoopDevice(ActiveDeviceTP[0].getText(), "EQUATORIAL_PE");
#else
IDSnoopDevice(ActiveDeviceT[ACTIVE_TELESCOPE].text, "EQUATORIAL_EOD_COORD");
IDSnoopDevice(ActiveDeviceTP[ACTIVE_TELESCOPE].getText(), "EQUATORIAL_EOD_COORD");
#endif
}

Expand Down
8 changes: 5 additions & 3 deletions drivers/weather/weathermeta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ bool WeatherMeta::initProperties()
ActiveDeviceTP[ACTIVE_WEATHER_3].fill( "ACTIVE_WEATHER_3", "Station #3", nullptr);
ActiveDeviceTP[ACTIVE_WEATHER_4].fill("ACTIVE_WEATHER_4", "Station #4", nullptr);
ActiveDeviceTP.fill(getDeviceName(), "ACTIVE_DEVICES", "Stations", OPTIONS_TAB,
IP_RW, 60, IPS_IDLE);
IP_RW, 60, IPS_IDLE);

// Station Status
StationLP[STATION_STATUS_1].fill("STATION_STATUS_1", "Station #1", IPS_IDLE);
Expand All @@ -74,7 +74,7 @@ bool WeatherMeta::initProperties()
// Update Period
UpdatePeriodNP[0].fill("PERIOD", "Period (secs)", "%4.2f", 0, 3600, 60, 60);
UpdatePeriodNP.fill(getDeviceName(), "WEATHER_UPDATE", "Update", MAIN_CONTROL_TAB,
IP_RO, 60, IPS_IDLE);
IP_RO, 60, IPS_IDLE);

addDebugControl();

Expand Down Expand Up @@ -122,7 +122,7 @@ bool WeatherMeta::ISNewText(const char *dev, const char *name, char *texts[], ch
{
if (ActiveDeviceTP.isNameMatch(name))
{
ActiveDeviceTP.setState(IPS_OK);
ActiveDeviceTP.setState(IPS_OK);
ActiveDeviceTP.update(texts, names, n);
// Update client display
ActiveDeviceTP.apply();
Expand All @@ -148,6 +148,8 @@ bool WeatherMeta::ISNewText(const char *dev, const char *name, char *texts[], ch
IDSnoopDevice(ActiveDeviceTP[ACTIVE_WEATHER_4].getText(), "WEATHER_UPDATE");
}

saveConfig(ActiveDeviceTP);

return true;
}
}
Expand Down
94 changes: 49 additions & 45 deletions libs/indibase/indiccd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -457,15 +457,15 @@ bool CCD::initProperties()
char skyquality[MAXINDIDEVICE] = {"SQM"};
IUGetConfigText(getDeviceName(), "ACTIVE_DEVICES", "ACTIVE_SKYQUALITY", skyquality, MAXINDIDEVICE);

IUFillText(&ActiveDeviceT[ACTIVE_TELESCOPE], "ACTIVE_TELESCOPE", "Telescope", telescope);
IUFillText(&ActiveDeviceT[ACTIVE_ROTATOR], "ACTIVE_ROTATOR", "Rotator", rotator);
IUFillText(&ActiveDeviceT[ACTIVE_FOCUSER], "ACTIVE_FOCUSER", "Focuser", focuser);
IUFillText(&ActiveDeviceT[ACTIVE_FILTER], "ACTIVE_FILTER", "Filter", filter);
IUFillText(&ActiveDeviceT[ACTIVE_SKYQUALITY], "ACTIVE_SKYQUALITY", "Sky Quality", skyquality);
IUFillTextVector(&ActiveDeviceTP, ActiveDeviceT, 5, getDeviceName(), "ACTIVE_DEVICES", "Snoop devices", OPTIONS_TAB,
IP_RW, 60, IPS_IDLE);

auto mount = ActiveDeviceT[ACTIVE_TELESCOPE].text ? ActiveDeviceT[ACTIVE_TELESCOPE].text : "";
ActiveDeviceTP[ACTIVE_TELESCOPE].fill("ACTIVE_TELESCOPE", "Telescope", telescope);
ActiveDeviceTP[ACTIVE_ROTATOR].fill("ACTIVE_ROTATOR", "Rotator", rotator);
ActiveDeviceTP[ACTIVE_FOCUSER].fill("ACTIVE_FOCUSER", "Focuser", focuser);
ActiveDeviceTP[ACTIVE_FILTER].fill("ACTIVE_FILTER", "Filter", filter);
ActiveDeviceTP[ACTIVE_SKYQUALITY].fill("ACTIVE_SKYQUALITY", "Sky Quality", skyquality);
ActiveDeviceTP.fill(getDeviceName(), "ACTIVE_DEVICES", "Snoop devices", OPTIONS_TAB, IP_RW, 60, IPS_IDLE);
ActiveDeviceTP.load();

auto mount = ActiveDeviceTP[ACTIVE_TELESCOPE].getText() ? ActiveDeviceTP[ACTIVE_TELESCOPE].getText() : "";
// Snooped RA/DEC Property
IUFillNumber(&EqN[0], "RA", "Ra (hh:mm:ss)", "%010.6m", 0, 24, 0, 0);
IUFillNumber(&EqN[1], "DEC", "Dec (dd:mm:ss)", "%010.6m", -90, 90, 0, 0);
Expand All @@ -488,20 +488,20 @@ bool CCD::initProperties()
IDSnoopDevice(mount, "TELESCOPE_PIER_SIDE");

// Snoop Rotator
IDSnoopDevice(ActiveDeviceT[ACTIVE_ROTATOR].text, "ABS_ROTATOR_ANGLE");
IDSnoopDevice(ActiveDeviceTP[ACTIVE_ROTATOR].getText(), "ABS_ROTATOR_ANGLE");

// JJ ed 2019-12-10
// Snoop Focuser
IDSnoopDevice(ActiveDeviceT[ACTIVE_FOCUSER].text, "ABS_FOCUS_POSITION");
IDSnoopDevice(ActiveDeviceT[ACTIVE_FOCUSER].text, "FOCUS_TEMPERATURE");
IDSnoopDevice(ActiveDeviceTP[ACTIVE_FOCUSER].getText(), "ABS_FOCUS_POSITION");
IDSnoopDevice(ActiveDeviceTP[ACTIVE_FOCUSER].getText(), "FOCUS_TEMPERATURE");
//

// Snoop Filter Wheel
IDSnoopDevice(ActiveDeviceT[ACTIVE_FILTER].text, "FILTER_SLOT");
IDSnoopDevice(ActiveDeviceT[ACTIVE_FILTER].text, "FILTER_NAME");
IDSnoopDevice(ActiveDeviceTP[ACTIVE_FILTER].getText(), "FILTER_SLOT");
IDSnoopDevice(ActiveDeviceTP[ACTIVE_FILTER].getText(), "FILTER_NAME");

// Snoop Sky Quality Meter
IDSnoopDevice(ActiveDeviceT[ACTIVE_SKYQUALITY].text, "SKY_QUALITY");
IDSnoopDevice(ActiveDeviceTP[ACTIVE_SKYQUALITY].getText(), "SKY_QUALITY");

// Guider Interface
initGuiderProperties(getDeviceName(), GUIDE_CONTROL_TAB);
Expand All @@ -516,7 +516,7 @@ bool CCD::initProperties()
void CCD::ISGetProperties(const char * dev)
{
DefaultDevice::ISGetProperties(dev);
defineProperty(&ActiveDeviceTP);
defineProperty(ActiveDeviceTP);

if (HasStreaming())
Streamer->ISGetProperties(dev);
Expand Down Expand Up @@ -888,22 +888,22 @@ bool CCD::ISNewText(const char * dev, const char * name, char * texts[], char *
{
// This is for our device
// Now lets see if it's something we process here
if (!strcmp(name, ActiveDeviceTP.name))
if (ActiveDeviceTP.isNameMatch(name))
{
ActiveDeviceTP.s = IPS_OK;
IUUpdateText(&ActiveDeviceTP, texts, names, n);
IDSetText(&ActiveDeviceTP, nullptr);
ActiveDeviceTP.setState(IPS_OK);
ActiveDeviceTP.update(texts, names, n);
ActiveDeviceTP.apply();

// Update the property name!
strncpy(EqNP.device, ActiveDeviceT[ACTIVE_TELESCOPE].text, MAXINDIDEVICE);
strncpy(J2000EqNP.device, ActiveDeviceT[ACTIVE_TELESCOPE].text, MAXINDIDEVICE);
if (strlen(ActiveDeviceT[ACTIVE_TELESCOPE].text) > 0)
strncpy(EqNP.device, ActiveDeviceTP[ACTIVE_TELESCOPE].getText(), MAXINDIDEVICE);
strncpy(J2000EqNP.device, ActiveDeviceTP[ACTIVE_TELESCOPE].getText(), MAXINDIDEVICE);
if (strlen(ActiveDeviceTP[ACTIVE_TELESCOPE].getText()) > 0)
{
LOGF_DEBUG("Snopping on Mount %s", ActiveDeviceT[ACTIVE_TELESCOPE].text);
IDSnoopDevice(ActiveDeviceT[ACTIVE_TELESCOPE].text, "EQUATORIAL_EOD_COORD");
IDSnoopDevice(ActiveDeviceT[ACTIVE_TELESCOPE].text, "EQUATORIAL_COORD");
IDSnoopDevice(ActiveDeviceT[ACTIVE_TELESCOPE].text, "TELESCOPE_INFO");
IDSnoopDevice(ActiveDeviceT[ACTIVE_TELESCOPE].text, "GEOGRAPHIC_COORD");
LOGF_DEBUG("Snopping on Mount %s", ActiveDeviceTP[ACTIVE_TELESCOPE].getText());
IDSnoopDevice(ActiveDeviceTP[ACTIVE_TELESCOPE].getText(), "EQUATORIAL_EOD_COORD");
IDSnoopDevice(ActiveDeviceTP[ACTIVE_TELESCOPE].getText(), "EQUATORIAL_COORD");
IDSnoopDevice(ActiveDeviceTP[ACTIVE_TELESCOPE].getText(), "TELESCOPE_INFO");
IDSnoopDevice(ActiveDeviceTP[ACTIVE_TELESCOPE].getText(), "GEOGRAPHIC_COORD");
}
else
{
Expand All @@ -919,10 +919,10 @@ bool CCD::ISNewText(const char * dev, const char * name, char * texts[], char *
Altitude = std::numeric_limits<double>::quiet_NaN();
}

if (strlen(ActiveDeviceT[ACTIVE_ROTATOR].text) > 0)
if (strlen(ActiveDeviceTP[ACTIVE_ROTATOR].getText()) > 0)
{
LOGF_DEBUG("Snopping on Rotator %s", ActiveDeviceT[ACTIVE_ROTATOR].text);
IDSnoopDevice(ActiveDeviceT[ACTIVE_ROTATOR].text, "ABS_ROTATOR_ANGLE");
LOGF_DEBUG("Snopping on Rotator %s", ActiveDeviceTP[ACTIVE_ROTATOR].getText());
IDSnoopDevice(ActiveDeviceTP[ACTIVE_ROTATOR].getText(), "ABS_ROTATOR_ANGLE");
}
else
{
Expand All @@ -931,11 +931,11 @@ bool CCD::ISNewText(const char * dev, const char * name, char * texts[], char *
}

// JJ ed 2019-12-10
if (strlen(ActiveDeviceT[ACTIVE_FOCUSER].text) > 0)
if (strlen(ActiveDeviceTP[ACTIVE_FOCUSER].getText()) > 0)
{
LOGF_DEBUG("Snopping on Focuser %s", ActiveDeviceT[ACTIVE_FOCUSER].text);
IDSnoopDevice(ActiveDeviceT[ACTIVE_FOCUSER].text, "ABS_FOCUS_POSITION");
IDSnoopDevice(ActiveDeviceT[ACTIVE_FOCUSER].text, "FOCUS_TEMPERATURE");
LOGF_DEBUG("Snopping on Focuser %s", ActiveDeviceTP[ACTIVE_FOCUSER].getText());
IDSnoopDevice(ActiveDeviceTP[ACTIVE_FOCUSER].getText(), "ABS_FOCUS_POSITION");
IDSnoopDevice(ActiveDeviceTP[ACTIVE_FOCUSER].getText(), "FOCUS_TEMPERATURE");
}
else
{
Expand All @@ -945,23 +945,25 @@ bool CCD::ISNewText(const char * dev, const char * name, char * texts[], char *
}


if (strlen(ActiveDeviceT[ACTIVE_FILTER].text) > 0)
if (strlen(ActiveDeviceTP[ACTIVE_FILTER].getText()) > 0)
{
LOGF_DEBUG("Snopping on Filter Wheel %s", ActiveDeviceT[ACTIVE_FILTER].text);
IDSnoopDevice(ActiveDeviceT[ACTIVE_FILTER].text, "FILTER_SLOT");
IDSnoopDevice(ActiveDeviceT[ACTIVE_FILTER].text, "FILTER_NAME");
LOGF_DEBUG("Snopping on Filter Wheel %s", ActiveDeviceTP[ACTIVE_FILTER].getText());
IDSnoopDevice(ActiveDeviceTP[ACTIVE_FILTER].getText(), "FILTER_SLOT");
IDSnoopDevice(ActiveDeviceTP[ACTIVE_FILTER].getText(), "FILTER_NAME");
}
else
{
LOG_DEBUG("No filter wheel is set. Clearing All filter wheel watchers.");
CurrentFilterSlot = -1;
}

IDSnoopDevice(ActiveDeviceT[ACTIVE_SKYQUALITY].text, "SKY_QUALITY");
IDSnoopDevice(ActiveDeviceTP[ACTIVE_SKYQUALITY].getText(), "SKY_QUALITY");

// Tell children active devices was updated.
activeDevicesUpdated();

saveConfig(ActiveDeviceTP);

// We processed this one, so, tell the world we did it
return true;
}
Expand Down Expand Up @@ -1234,7 +1236,8 @@ bool CCD::ISNewNumber(const char * dev, const char * name, double values[], char
ScopeInfoNP.setState(IPS_OK);
ScopeInfoNP.apply();
saveConfig(true, ScopeInfoNP.getName());
} else
}
else
{
ScopeInfoNP.setState(IPS_ALERT);
}
Expand Down Expand Up @@ -1960,15 +1963,16 @@ void CCD::addFITSKeywords(CCDChip * targetChip, std::vector<FITSRecord> &fitsKey

// Telescope
// Only add keyword if not already exists in custom keywords
if (m_CustomFITSKeywords.count("TELESCOP") == 0 && strlen(ActiveDeviceT[ACTIVE_TELESCOPE].text) > 0)
if (m_CustomFITSKeywords.count("TELESCOP") == 0 && strlen(ActiveDeviceTP[ACTIVE_TELESCOPE].getText()) > 0)
{
fitsKeywords.push_back({"TELESCOP", ActiveDeviceT[0].text, "Telescope name"});
fitsKeywords.push_back({"TELESCOP", ActiveDeviceTP[ACTIVE_TELESCOPE].getText(), "Telescope name"});
}


// Which scope is in effect
// Prefer Scope Info over snooped property which should be deprecated.
effectiveFocalLength = ScopeInfoNP[FOCAL_LENGTH].getValue() > 0 ? ScopeInfoNP[FOCAL_LENGTH].getValue() : snoopedFocalLength;
effectiveFocalLength = ScopeInfoNP[FOCAL_LENGTH].getValue() > 0 ? ScopeInfoNP[FOCAL_LENGTH].getValue() :
snoopedFocalLength;
effectiveAperture = ScopeInfoNP[APERTURE].getValue() > 0 ? ScopeInfoNP[APERTURE].getValue() : snoopedAperture;

if (std::isnan(effectiveFocalLength))
Expand Down Expand Up @@ -2783,7 +2787,7 @@ bool CCD::saveConfigItems(FILE * fp)
{
DefaultDevice::saveConfigItems(fp);

IUSaveConfigText(fp, &ActiveDeviceTP);
ActiveDeviceTP.save(fp);
IUSaveConfigSwitch(fp, &UploadSP);
IUSaveConfigText(fp, &UploadSettingsTP);
IUSaveConfigSwitch(fp, &FastExposureToggleSP);
Expand Down
5 changes: 1 addition & 4 deletions libs/indibase/indiccd.h
Original file line number Diff line number Diff line change
Expand Up @@ -658,10 +658,7 @@ class CCD : public DefaultDevice, GuiderInterface
* + **Filter Wheel**: Listens for FILTER_SLOT and FILTER_NAME properties.
* + **SQM**: Listens for sky quality meter magnitude.
*/
ITextVectorProperty ActiveDeviceTP;

// JJ ed 2019-12-10
IText ActiveDeviceT[5] {};
INDI::PropertyText ActiveDeviceTP {5};
enum
{
ACTIVE_TELESCOPE,
Expand Down
Loading

0 comments on commit 223db9d

Please sign in to comment.