89 virtual bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
90 virtual bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
91 virtual bool ISNewText(
const char *dev,
const char *name,
char *texts[],
char *names[],
int n)
override;
140 bool loadNextXISFImage(
const std::string &filename);
152 void drawPlanetRGB8(uint8_t *buffer,
double centerX,
double centerY);
153 void drawPlanetRGB16(uint16_t *buffer,
double centerX,
double centerY);
328 inline static const std::vector<std::pair<uint32_t, uint32_t>>
Resolutions =
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....
INDI::PropertyNumber TiltSimulationNP
float periodicErrorOffset()
bool initProperties() override
Initialize properties initial state and value. The child class must implement this function.
INDI::PropertySwitch PlanetRecenterSP
INDI::PropertyNumber PlanetDriftNP
void setBayerEnabled(bool onOff)
INDI::PropertyNumber FocusSimulationNP
bool StartExposure(float duration) override
Start exposing primary CCD chip.
bool loadNextFITSImage(const std::string &filename)
void applyPointingOffset(double &ra, double &de)
virtual IPState GuideSouth(uint32_t) override
Guide southward for ms milliseconds.
INDI::PropertyText PlanetPathsTP
INDI::PropertyText DirectoryTP
INDI::PropertyNumber GainNP
bool m_PlanetPositionValid
std::chrono::steady_clock::time_point m_PlanetDriftStart
static const constexpr char * SIMULATOR_TAB
std::string m_XPlanetConfig
float GuideRate
Guide rate is 7 arcseconds per second.
double parallacticAngle()
bool Disconnect() override
Disconnect from device.
INDI::PropertyNumber EqPENP
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.
bool StartGuideExposure(float) override
Start exposing guide CCD chip.
virtual bool SetCaptureFormat(uint8_t index) override
SetCaptureFormat Set Active Capture format.
INDI::PropertySwitch SimTestsSP
std::vector< uint8_t > m_PlanetSprite
std::string m_XPlanetBinary
virtual ~CCDSim() override=default
void drawPlanetRGB16(uint16_t *buffer, double centerX, double centerY)
void TimerHit() override
Callback function to be called once SetTimer duration elapses.
virtual int SetTemperature(double temperature) override
Set CCD temperature.
static const std::map< std::string, float > PlanetAngularDiameter
const char * getDefaultName() override
std::deque< std::string > m_AllFiles
INDI::PropertySwitch CoolerSP
virtual bool StartStreaming() override
StartStreaming Start live video streaming.
INDI::PropertyNumber SimulatorSettingsNP
static void * streamVideoHelper(void *context)
void drawPlanetRGB8(uint8_t *buffer, double centerX, double centerY)
virtual bool ISSnoopDevice(XMLEle *root) override
Process a snoop event from INDI server. This function is called when a snooped property is updated in...
std::atomic< time_t > m_LastPlanetRenderTime
float m_PlanetRefreshMinutes
virtual IPState GuideEast(uint32_t) override
Guide easward for ms milliseconds.
void planetPosition(double &x, double &y)
float m_PlanetSizeOverride
virtual IPState GuideWest(uint32_t) override
Guide westward for ms milliseconds.
std::mt19937 m_PlanetRandom
int QueryFilter() override
Return current filter position.
virtual bool StopStreaming() override
StopStreaming Stop live video streaming.
float m_PEPeriod
PEPeriod in minutes.
std::vector< uint8_t > m_PlanetStreamFrame
bool SelectFilter(int) override
Select a new filter position.
bool Connect() override
Connect to the device. INDI::DefaultDevice implementation connects to appropriate connection interfac...
std::vector< SensorDefect > m_Defects
INDI::PropertyNumber FieldRotationNP
INDI::PropertyNumber OffsetNP
virtual bool ISNewText(const char *dev, const char *name, char *texts[], char *names[], int n) override
Process the client newSwitch command.
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 ...
static const std::vector< std::pair< uint32_t, uint32_t > > Resolutions
INDI::PropertySwitch ResolutionSP
INumberVectorProperty FWHMNP
std::string m_SelectedPlanet
virtual IPState GuideNorth(uint32_t) override
Guide northward for ms milliseconds.
bool AbortExposure() override
Abort ongoing exposure.
INDI::PropertyNumber PlanetSettingsNP
INDI::PropertySwitch PlanetSelectSP
INDI::PropertyNumber DefectSimulationNP
float m_CachedFocalLength
INDI::PropertyNumber PointingOffsetNP
std::string m_CachedPlanet
double TemperatureRequest
uint32_t m_PlanetSpriteSize
bool updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
INDI::PropertySwitch DirectorySP
virtual void activeDevicesUpdated() override
activeDevicesUpdated Inform children that ActiveDevices property was updated so they can snoop on the...
std::deque< std::string > m_RemainingFiles
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
INDI::PropertySwitch PlanetModeSP
float CalcTimeLeft(timeval start, float req)
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems Save configuration items in XML file.
virtual bool UpdateGuiderBin(int hor, int ver) override
CCD calls this function when Guide head binning is updated by the client. Derived classes should impl...
float GuideExposureRequest
virtual void addFITSKeywords(INDI::CCDChip *targetChip, std::vector< INDI::FITSRecord > &fitsKeyword) override
Generate FITS keywords that will be added to FIST/XISF file.
bool AbortGuideExposure() override
Abort ongoing exposure.
int DrawCcdFrame(INDI::CCDChip *targetChip)
static const constexpr char * PLANET_TAB
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...
struct _INumberVectorProperty INumberVectorProperty
*brief user defined string literal for JSON values *sa std::size_t n