57 virtual bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
58 virtual bool ISNewText(
const char *dev,
const char *name,
char *texts[],
char *names[],
int n)
override;
59 virtual bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
99 void setRGB(
bool onOff);
101 float CalcTimeLeft(timeval start,
float req);
109 int m_MaxVal {65000};
110 float m_LimitingMag {11.5f};
111 float m_SaturationMag {2.0f};
112 float m_Seeing {3.5f};
114 double m_TemperatureRequest { 0 };
116 float m_ExposureRequest { 0 };
117 struct timeval m_ExpStart
123 int m_TestValue { 0 };
124 bool m_ShowStarField {
true };
126 int m_MaxNoise { 20 };
127 float m_SkyGlow { 40 };
129 float m_OAGoffset { 0 };
130 float m_TimeFactor { 1 };
135 float m_RotationOffset { 0 };
137 bool m_SimulateRGB {
false };
139 bool m_AbortPrimaryFrame {
false };
149 float m_PEPeriod { 8 * 60 };
150 float m_PEMax { 11 };
153 float m_RaRand { 0 };
154 float m_DecRand { 0 };
157 float m_RaTimeDrift { 0 };
158 float m_DecTimeDrift { 0 };
160 bool m_UsePE {
false };
161#ifdef USE_EQUATORIAL_PE
167 bool m_RunStartInitialized {
false };
169 float m_PolarError { 0 };
170 float m_PolarDrift { 0 };
171 float m_KingGamma = { 0 };
172 float m_KingTheta = { 0 };
174 int m_StreamPredicate;
175 pthread_t m_PrimaryThread;
176 bool m_TerminateThread;
229 bool m_SimulateTimeout {
false };
231 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 bool ISNewText(const char *dev, const char *name, char *texts[], char *names[], int n) override
Process the client newSwitch command.
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.
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
Initialize 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.
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.
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...
The SimulatorClock class is the clock of a camera simulator: the system clock, shifted to the time th...