23#ifdef _USE_SYSTEM_JSONLIB
24#include <nlohmann/json.hpp>
42 virtual bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
43 virtual bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
44 virtual bool ISNewText(
const char *dev,
const char *name,
char *texts[],
char *names[],
int n)
override;
54 virtual bool Abort()
override;
60 float CalcTimeLeft(timeval);
62 double MotionRequest { 0 };
63 struct timeval MotionStart { 0, 0 };
80 bool sendRoofCommand(
const char *action);
81 bool simulateRoofCommand(
const char *action);
84 std::string readBuffer;
85 int simulatedPosition { 0 };
86 bool isSimulated {
false };
87 struct timeval simulationStartTime { 0, 0 };
88 int simulationTargetPosition { 0 };
89 bool isMoving {
false };
virtual void ISGetProperties(const char *dev) override
define the driver's properties to the client. Usually, only a minimum set of properties are defined t...
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Process the client newSwitch command.
virtual IPState Park() override
Goto Park Position. The park position is an absolute azimuth value.
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
virtual bool Abort() override
Abort all dome motion.
virtual bool initProperties() override
Initialize properties initial state and value. The child class must implement this function.
bool Connect() override
Connect to the device. INDI::DefaultDevice implementation connects to appropriate connection interfac...
virtual IPState Move(DomeDirection dir, DomeMotionCommand operation) override
Move the Dome in a particular direction.
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems Saves the Device Port and Dome Presets in the configuration file
bool updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
const char * getDefaultName() override
virtual ~HakosRoof()=default
virtual IPState UnPark() override
UnPark dome. The action of the Unpark command is dome specific, but it may include opening the shutte...
virtual bool ISNewText(const char *dev, const char *name, char *texts[], char *names[], int n) override
Process the client newSwitch command.
virtual bool getMountSensorSwitch()
void TimerHit() override
Callback function to be called once SetTimer duration elapses.
Class to provide general functionality of a Dome device.
a class to store JSON values
basic_json<> json
default specialization