Instrument Neutral Distributed Interface INDI
1.9.5
|
Go to the documentation of this file.
138 virtual bool ISNewNumber(
const char * dev,
const char *
name,
double values[],
char * names[],
int n)
override;
139 virtual bool ISNewSwitch(
const char * dev,
const char *
name,
ISState * states,
char * names[],
int n)
override;
140 virtual bool ISNewText(
const char * dev,
const char *
name,
char * texts[],
char * names[],
int n)
override;
141 virtual bool ISNewBLOB(
const char *dev,
const char *
name,
int sizes[],
int blobsizes[],
char *blobs[],
char *formats[],
142 char *names[],
int n)
override;
151 static constexpr
const char *
WCS_TAB =
"WCS";
265 if(
DSP.get() ==
nullptr)
413 virtual void SetCCDParams(
int x,
int y,
int bpp,
float xf,
float yf);
424 virtual void SetGuiderParams(
int x,
int y,
int bpp,
float xf,
float yf);
593 std::unique_ptr<DSP::Manager>
DSP;
736 bool m_ValidCCDRotation;
742 bool uploadFile(CCDChip * targetChip,
const void * fitsData,
size_t totalBytes,
bool sendImage,
bool saveImage);
743 void getMinMax(
double *
min,
double *
max, CCDChip * targetChip);
744 int getFileIndex(
const char * dir,
const char * prefix,
const char * ext);
745 bool ExposureCompletePrivate(CCDChip * targetChip);
748 #ifdef HAVE_WEBSOCKET
749 std::thread wsThread;
750 void wsThreadEntry();
virtual bool StartStreaming()
StartStreaming Start live video streaming.
std::chrono::system_clock::time_point FastExposureToggleStartup
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Process the client newSwitch command.
virtual IPState GuideWest(uint32_t ms) override
Guide westward for ms milliseconds.
ITextVectorProperty UploadSettingsTP
INDI::PropertyNumber TemperatureRampNP
Temperature Ramp in C/Min with configurable threshold.
INumber WebSocketSettingsN[1]
virtual int SetTemperature(double temperature)
Set CCD temperature.
virtual bool UpdateGuiderFrame(int x, int y, int w, int h)
CCD calls this function when Guide head frame dimension is updated by the client. Derived classes sho...
virtual IPState GuideEast(uint32_t ms) override
Guide easward for ms milliseconds.
static constexpr const char * GUIDE_CONTROL_TAB
Group Names.
virtual bool ExposureComplete(CCDChip *targetChip)
Uploads target Chip exposed buffer as FITS to the client. Dervied classes should class this function ...
ITextVectorProperty FITSHeaderTP
INumberVectorProperty WebSocketSettingsNP
virtual bool UpdateGuiderBin(int hor, int ver)
CCD calls this function when Guide head binning is updated by the client. Derived classes should impl...
INDI::ElapsedTimer m_TemperatureElapsedTimer
double GuiderExposureTime
virtual IPState GuideNorth(uint32_t ms) override
Guide northward for ms milliseconds.
virtual void SetCCDParams(int x, int y, int bpp, float xf, float yf)
Setup CCD paramters for primary CCD. Child classes call this function to update CCD parameters.
The Timer class provides repetitive and single-shot timers.
const char * GUIDE_HEAD_TAB
ISwitch TelescopeTypeS[2]
static void wsThreadHelper(void *context)
const char * IMAGE_INFO_TAB
Class to provide video streaming and recording functionality.
virtual void addFITSKeywords(fitsfile *fptr, CCDChip *targetChip)
Add FITS keywords to a fits file.
ISwitchVectorProperty WebSocketSP
ISwitchVectorProperty TelescopeTypeSP
ITextVectorProperty BayerTP
BayerTP Bayer pattern offset and type.
virtual bool StopStreaming()
StopStreaming Stop live video streaming.
Text vector property descriptor.
Class to provide general functionality of CCD cameras with a single CCD sensor, or a primary CCD sens...
The CCDChip class provides functionality of a CCD Chip within a CCD.
enum INDI::CCD::@169 CCDCapability
Number vector property descriptor.
virtual bool StartGuideExposure(float duration)
Start exposing guide CCD chip.
virtual bool ISNewText(const char *dev, const char *name, char *texts[], char *names[], int n) override
Process the client newSwitch command.
virtual void SetGuiderParams(int x, int y, int bpp, float xf, float yf)
Setup CCD paramters for guide head CCD. Child classes call this function to update CCD parameters.
const char * IMAGE_SETTINGS_TAB
virtual bool UpdateCCDBin(int hor, int ver)
CCD calls this function when CCD Binning needs to be updated in the hardware. Derived classes should ...
virtual bool initProperties() override
Initilize properties initial state and value. The child class must implement this function.
virtual void checkTemperatureTarget()
checkTemperatureTarget Checks the current temperature against target temperature and calculates the n...
INumberVectorProperty EqNP
Properties.
std::unique_ptr< DSP::Manager > DSP
INumberVectorProperty FastExposureCountNP
The ElapsedTimer class provides a fast way to calculate elapsed times.
virtual bool AbortExposure()
Abort ongoing exposure.
virtual IPState GuideSouth(uint32_t ms) override
Guide southward for ms milliseconds.
INumberVectorProperty TemperatureNP
TemperatureNP Camera Temperature in Celcius.
virtual void activeDevicesUpdated()
activeDevicesUpdated Inform children that ActiveDevices property was updated so they can snoop on the...
virtual bool updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
virtual bool UpdateCCDUploadMode(CCD_UPLOAD_MODE mode)
CCD calls this function when client upload mode switch is updated.
static constexpr const char * WCS_TAB
INumberVectorProperty CCDRotationNP
ISwitchVectorProperty FastExposureToggleSP
virtual bool UpdateGuiderFrameType(CCDChip::CCD_FRAME fType)
CCD calls this function when Guide frame type is updated by the client.
void fits_update_key_s(fitsfile *fptr, int type, std::string name, void *p, std::string explanation, int *status)
virtual bool AbortGuideExposure()
Abort ongoing exposure.
ITextVectorProperty ActiveDeviceTP
ActiveDeviceTP defines 4 devices the camera driver can listen to (snoop) for properties of interest s...
The DSP Namespace adds signal processing to INDI drivers. Primarily written for sensors and detectors...
ISwitchVectorProperty WorldCoordSP
ITextVectorProperty FileNameTP
FileNameTP File name of locally-saved images. By default, images are uploaded to the client but when ...
INDI::Timer m_TemperatureCheckTimer
virtual bool ISNewBLOB(const char *dev, const char *name, int sizes[], int blobsizes[], char *blobs[], char *formats[], char *names[], int n) override
Process the client newBLOB command.
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 processFastExposure(CCDChip *targetChip)
processFastExposure After an exposure is complete, check if fast exposure was enabled....
void SetCCDCapability(uint32_t cap)
SetCCDCapability Set the CCD capabilities. Al fields must be initilized.
INumberVectorProperty J2000EqNP
J200EqNP Snoop property to read the equatorial J2000 coordinates of the mount. ActiveDeviceTP defines...
ISwitch FastExposureToggleS[2]
virtual void GuideComplete(INDI_EQ_AXIS axis) override
GuideComplete Signal guide pulse completion.
virtual bool ISSnoopDevice(XMLEle *root) override
Process a snoop event from INDI server. This function is called when a snooped property is updated in...
Namespace to encapsulate INDI client, drivers, and mediator classes.
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems Save configuration items in XML file.
virtual bool UpdateCCDFrameType(CCDChip::CCD_FRAME fType)
CCD calls this function when CCD frame type needs to be updated in the hardware.
ISwitchVectorProperty UploadSP
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
uint32_t GetCCDCapability() const
GetCCDCapability returns the CCD capabilities.
char exposureStartTime[MAXINDINAME]
double primaryFocalLength
virtual bool StartExposure(float duration)
Start exposing primary CCD chip.
double m_TargetTemperature
Class to provide extended functionality for devices in addition to the functionality provided by INDI...
friend class StreamManager
Misc.
INumber FastExposureCountN[1]
std::vector< std::string > FilterNames
std::unique_ptr< StreamManager > Streamer
virtual bool UpdateCCDFrame(int x, int y, int w, int h)
CCD calls this function when CCD Frame dimension needs to be updated in the hardware....
Switch vector property descriptor.