Provides interface to implement GPS functionality.
More...
#include <indigpsinterface.h>
|
| | GPSInterface (DefaultDevice *defaultDevice) |
| |
| virtual | ~GPSInterface ()=default |
| |
| void | initProperties (const char *groupName) |
| | Initialize focuser properties. It is recommended to call this function within initProperties() of your primary device.
|
| |
| bool | updateProperties () |
| | updateProperties Define or Delete Rotator properties based on the connection status of the base device
|
| |
| bool | processNumber (const char *dev, const char *name, double values[], char *names[], int n) |
| | Process focus number properties.
|
| |
| bool | processSwitch (const char *dev, const char *name, ISState *states, char *names[], int n) |
| | Process focus switch properties.
|
| |
| virtual bool | saveConfigItems (FILE *fp) |
| | saveConfigItems save focuser properties defined in the interface in config file
|
| |
| void | checkGPSState () |
| | checkGPSState Check and update GPS state
|
| |
| bool | setSystemTime (time_t &raw_time) |
| | SetSystemTime Update system-wide time.
|
| |
| virtual IPState | updateGPS () |
| | updateGPS Retrieve Location & Time from GPS. Update LocationNP & TimeTP properties (value and state) without sending them to the client (i.e. IDSetXXX).
|
| |
Provides interface to implement GPS functionality.
- Author
- Jasem Mutlaq
Definition at line 45 of file indigpsinterface.h.
◆ anonymous enum
| Enumerator |
|---|
| UPDATE_NEVER | |
| UPDATE_ON_STARTUP | |
| UPDATE_ON_REFRESH | |
Definition at line 151 of file indigpsinterface.h.
◆ GPSLocation
| Enumerator |
|---|
| LOCATION_LATITUDE | |
| LOCATION_LONGITUDE | |
| LOCATION_ELEVATION | |
Definition at line 48 of file indigpsinterface.h.
◆ GPSInterface()
| INDI::GPSInterface::GPSInterface |
( |
DefaultDevice * |
defaultDevice | ) |
|
|
explicitprotected |
◆ ~GPSInterface()
| virtual INDI::GPSInterface::~GPSInterface |
( |
| ) |
|
|
protectedvirtualdefault |
◆ checkGPSState()
| void INDI::GPSInterface::checkGPSState |
( |
| ) |
|
|
protected |
◆ initProperties()
| void INDI::GPSInterface::initProperties |
( |
const char * |
groupName | ) |
|
|
protected |
Initialize focuser properties. It is recommended to call this function within initProperties() of your primary device.
- Parameters
-
| groupName | Group or tab name to be used to define focuser properties. |
Definition at line 52 of file indigpsinterface.cpp.
◆ processNumber()
| bool INDI::GPSInterface::processNumber |
( |
const char * |
dev, |
|
|
const char * |
name, |
|
|
double |
values[], |
|
|
char * |
names[], |
|
|
int |
n |
|
) |
| |
|
protected |
◆ processSwitch()
| bool INDI::GPSInterface::processSwitch |
( |
const char * |
dev, |
|
|
const char * |
name, |
|
|
ISState * |
states, |
|
|
char * |
names[], |
|
|
int |
n |
|
) |
| |
|
protected |
◆ saveConfigItems()
| bool INDI::GPSInterface::saveConfigItems |
( |
FILE * |
fp | ) |
|
|
protectedvirtual |
◆ setSystemTime()
| bool INDI::GPSInterface::setSystemTime |
( |
time_t & |
raw_time | ) |
|
|
protected |
SetSystemTime Update system-wide time.
- Parameters
-
- Returns
- true if successful, false other.
- Note
- Process user must have permission to set time.
Definition at line 281 of file indigpsinterface.cpp.
◆ updateGPS()
| IPState INDI::GPSInterface::updateGPS |
( |
| ) |
|
|
protectedvirtual |
updateGPS Retrieve Location & Time from GPS. Update LocationNP & TimeTP properties (value and state) without sending them to the client (i.e. IDSetXXX).
- Returns
- Return overall state. The state should be IPS_OK if data is valid. IPS_BUSY if GPS fix is in progress. IPS_ALERT is there is an error. The clients will only accept values with IPS_OK state.
Reimplemented in GPSSimulator, and UranusMeteo.
Definition at line 483 of file indigpsinterface.cpp.
◆ updateProperties()
| bool INDI::GPSInterface::updateProperties |
( |
| ) |
|
|
protected |
updateProperties Define or Delete Rotator properties based on the connection status of the base device
- Returns
- True if successful, false otherwise.
Definition at line 152 of file indigpsinterface.cpp.
◆ LocationNP
◆ m_DefaultDevice
◆ m_GPSTime
| std::time_t INDI::GPSInterface::m_GPSTime |
|
protected |
◆ m_NTPDisabledByGPS
| bool INDI::GPSInterface::m_NTPDisabledByGPS { false } |
|
protected |
◆ m_SystemTimeUpdated
| bool INDI::GPSInterface::m_SystemTimeUpdated {false} |
|
protected |
◆ m_UpdateTimer
◆ PeriodNP
◆ RefreshSP
◆ SystemTimeUpdateSP
◆ TimeTP
The documentation for this class was generated from the following files: