Instrument Neutral Distributed Interface INDI 2.2.5
Public Member Functions | List of all members
SimulatorClock Class Reference

The SimulatorClock class is the clock of a camera simulator: the system clock, shifted to the time the client last wrote to TIME_UTC. More...

#include <simulator_clock.h>

Public Member Functions

void initProperties (const char *deviceName, const char *group)
 
void updateProperties (INDI::DefaultDevice *device, bool connected)
 
bool processText (const char *name, char *texts[], char *names[], int n)
 
double julianDate () const
 
double localSiderealTime (double longitude) const
 

Detailed Description

The SimulatorClock class is the clock of a camera simulator: the system clock, shifted to the time the client last wrote to TIME_UTC.

The client (KStars) sets TIME_UTC on every device that has it, so the camera simulators follow the same clock as the telescope simulator. With no TIME_UTC set, the clock is the system clock.

Definition at line 37 of file simulator_clock.h.

Member Function Documentation

◆ initProperties()

void SimulatorClock::initProperties ( const char *  deviceName,
const char *  group 
)
inline

Definition at line 40 of file simulator_clock.h.

◆ julianDate()

double SimulatorClock::julianDate ( ) const
inline

Definition at line 93 of file simulator_clock.h.

◆ localSiderealTime()

double SimulatorClock::localSiderealTime ( double  longitude) const
inline

Definition at line 99 of file simulator_clock.h.

◆ processText()

bool SimulatorClock::processText ( const char *  name,
char *  texts[],
char *  names[],
int  n 
)
inline

Definition at line 60 of file simulator_clock.h.

◆ updateProperties()

void SimulatorClock::updateProperties ( INDI::DefaultDevice *  device,
bool  connected 
)
inline

Definition at line 48 of file simulator_clock.h.


The documentation for this class was generated from the following file: