29#ifdef _USE_SYSTEM_HIDAPILIB
30#include <hidapi/hidapi.h>
56 static constexpr unsigned short HITECH_VID = 0x04D8;
57 static constexpr unsigned short HITECH_PID = 0xF772;
60 static constexpr unsigned char CMD_GET_SKY_TEMP = 0x50;
61 static constexpr unsigned char CMD_GET_AMBIENT = 0x5A;
64 bool getSkyTemperature(
double &skyTemp);
65 bool getAmbientTemperature(
double &ambientTemp);
66 double calculateCloudCover(
double ambientTemp,
double skyTemp);
bool Disconnect() override
Disconnect from device.
virtual bool initProperties() override
Initialize properties initial state and value. The child class must implement this function.
virtual IPState updateWeather() override
updateWeather Update weather conditions from device or service. The function should not change the st...
bool Connect() override
Connect to the device. INDI::DefaultDevice implementation connects to appropriate connection interfac...
const char * getDefaultName() override