56 virtual bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
57 virtual bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
96 float CalcTimeLeft(timeval,
float);
100 void setRGB(
bool onOff);
102 double TemperatureRequest { 0 };
104 float ExposureRequest { 0 };
105 struct timeval ExpStart
112 bool ShowStarField {
true };
115 int maxval { 65000 };
117 int minpix { 65000 };
118 float skyglow { 40 };
119 float limitingmag { 11.5 };
120 float saturationmag { 2 };
121 float seeing { 3.5 };
122 float ImageScalex { 1.0 };
123 float ImageScaley { 1.0 };
125 float OAGoffset { 0 };
126 double rotationCW { 0 };
127 float TimeFactor { 1 };
129 bool simulateRGB {
false };
135 bool AbortPrimaryFrame {
false };
138 float GuideRate { 7 };
141 float PEPeriod { 8 * 60 };
144 double currentRA { 0 };
145 double currentDE { 0 };
146 bool usePE {
false };
149 float guideNSOffset {0};
150 float guideWEOffset {0};
152 float polarError { 0 };
153 float polarDrift { 0 };
154 float king_gamma = { 0 };
155 float king_theta = { 0 };
158 pthread_t primary_thread;
159 bool terminateThread;
164 INumber SimulatorSettingsN[17];
180 static constexpr
const char *SIMULATOR_TAB {
"Simulator Settings"};
The GuideSim class provides an advanced simulator for a CCD that includes a dedicated on-board guide ...
virtual IPState GuideNorth(uint32_t) override
Guide northward for ms milliseconds.
virtual bool UpdateCCDFrame(int x, int y, int w, int h) override
CCD calls this function when CCD Frame dimension needs to be updated in the hardware....
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems Save configuration items in XML file.
virtual IPState GuideEast(uint32_t) override
Guide easward for ms milliseconds.
void TimerHit() override
Callback function to be called once SetTimer duration elapses.
virtual ~GuideSim() override=default
virtual bool UpdateCCDBin(int hor, int ver) override
CCD calls this function when CCD Binning needs to be updated in the hardware. Derived classes should ...
int DrawCcdFrame(INDI::CCDChip *targetChip)
virtual void addFITSKeywords(INDI::CCDChip *targetChip, std::vector< INDI::FITSRecord > &fitsKeywords) override
Generate FITS keywords that will be added to FIST/XISF file.
const char * getDefaultName() override
virtual bool ISSnoopDevice(XMLEle *root) override
Process a snoop event from INDI server. This function is called when a snooped property is updated in...
bool Disconnect() override
Disconnect from device.
int AddToPixel(INDI::CCDChip *targetChip, int, int, int)
void ISGetProperties(const char *dev) override
define the driver's properties to the client. Usually, only a minimum set of properties are defined t...
bool AbortExposure() override
Abort ongoing exposure.
virtual bool StartStreaming() override
StartStreaming Start live video streaming.
virtual bool StopStreaming() override
StopStreaming Stop live video streaming.
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
bool initProperties() override
Initilize properties initial state and value. The child class must implement this function.
bool updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
virtual IPState GuideSouth(uint32_t) override
Guide southward for ms milliseconds.
static void * streamVideoHelper(void *context)
bool StartExposure(float duration) override
Start exposing primary CCD chip.
virtual void activeDevicesUpdated() override
activeDevicesUpdated Inform children that ActiveDevices property was updated so they can snoop on the...
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Process the client newSwitch command.
int DrawImageStar(INDI::CCDChip *targetChip, float, float, float, float ExposureTime)
bool Connect() override
Connect to the device. INDI::DefaultDevice implementation connects to appropriate connection interfac...
virtual IPState GuideWest(uint32_t) override
Guide westward for ms milliseconds.
virtual int SetTemperature(double temperature) override
Set CCD temperature.
The CCDChip class provides functionality of a CCD Chip within a CCD.
Class to provide general functionality of CCD cameras with a single CCD sensor, or a primary CCD sens...
Number vector property descriptor.
Switch vector property descriptor.