146 void initProperties(
const char *statusGroup,
const char *paramsGroup);
155 bool processNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n);
209 void addParameter(std::string name, std::string label,
double numMinOk,
double numMaxOk,
double percWarning,
bool flipWarning =
false);
310 void createParameterRange(std::string name, std::string label,
double numMinOk,
double numMaxOk,
double percWarning,
bool flipWarning);
312 std::string m_ParametersGroup;
Class to provide extended functionality for devices in addition to the functionality provided by INDI...
The Timer class provides repetitive and single-shot timers.
Provides interface to implement weather reporting and safety monitoring functionality.
void addParameter(std::string name, std::string label, double numMinOk, double numMaxOk, double percWarning, bool flipWarning=false)
Add a physical weather measurable parameter to the weather driver.
virtual ~WeatherInterface()
bool processSwitch(const char *dev, const char *name, ISState *states, char *names[], int n)
Process weather switch properties.
bool setCriticalParameter(std::string name)
setCriticalParameter Set parameter that is considered critical to the operation of the observatory....
bool syncCriticalParameters()
Synchronize and update the state of all critical parameters.
virtual IPState updateWeather()
updateWeather Update weather conditions from device or service. The function should not change the st...
void setParameterValue(std::string name, double value)
setParameterValue Update weather parameter value
bool processNumber(const char *dev, const char *name, double values[], char *names[], int n)
Process weather number properties.
virtual bool saveConfigItems(FILE *fp)
saveConfigItems Save parameters ranges in the config file.
INDI::PropertyNumber ParametersNP
std::vector< INDI::PropertyNumber > ParametersRangeNP
INDI::PropertySwitch OverrideSP
IPState checkParameterState(const std::string ¶m) const
Checks the given parameter against the defined bounds.
void checkWeatherUpdate()
checkWeatherUpdate Calls updateWeather and update critical parameters accordingly.
INDI::PropertyLight SafetyStatusLP
void initProperties(const char *statusGroup, const char *paramsGroup)
Initialize focuser properties. It is recommended to call this function within initProperties() of you...
INDI::PropertySwitch RefreshSP
bool updateProperties()
updateProperties Define or Delete Rotator properties based on the connection status of the base devic...
INDI::PropertyLight critialParametersLP
INDI::PropertyNumber UpdatePeriodNP
Namespace to encapsulate INDI client, drivers, and mediator classes.