TwiceAsNice  2019-02-18
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
NexStarAUXScope Class Reference

#include <NexStarAUXScope.h>

Collaboration diagram for NexStarAUXScope:
Collaboration graph

Public Member Functions

 NexStarAUXScope (char const *ip, int port)
 
 NexStarAUXScope (int port)
 
 NexStarAUXScope (char const *ip)
 
 NexStarAUXScope ()
 
 ~NexStarAUXScope ()
 
bool Abort ()
 
long GetALT ()
 
long GetAZ ()
 
bool slewing ()
 
bool Slew (AUXtargets trg, int rate)
 
bool SlewALT (int rate)
 
bool SlewAZ (int rate)
 
bool GoToFast (long alt, long az, bool track)
 
bool GoToSlow (long alt, long az, bool track)
 
bool Track (long altRate, long azRate)
 
bool TimerTick (double dt)
 
bool UpdateLocation (double lat, double lon, double elev)
 
bool Park ()
 
bool Connect (int PortFD)
 
bool Disconnect ()
 

Private Member Functions

void initScope (char const *ip, int port)
 
void initScope ()
 
bool detectScope ()
 
void closeConnection ()
 
void emulateGPS (AUXCommand &m)
 
void readMsgs ()
 
void processCmd (AUXCommand &cmd)
 
void querryStatus ()
 
bool sendCmd (AUXCommand &c)
 

Private Attributes

double Lat
 
double Lon
 
double Elv
 
long Alt
 
long Az
 
long AltRate
 
long AzRate
 
long targetAlt
 
long targetAz
 
long slewRate
 
bool tracking
 
bool slewingAlt
 
bool slewingAz
 
int sock
 
struct sockaddr_in addr
 
bool simulator = false
 

Static Private Attributes

static const long STEPS_PER_REVOLUTION = 16777216
 

Constructor & Destructor Documentation

◆ NexStarAUXScope() [1/4]

NexStarAUXScope::NexStarAUXScope ( char const ip,
int  port 
)

◆ NexStarAUXScope() [2/4]

NexStarAUXScope::NexStarAUXScope ( int  port)

◆ NexStarAUXScope() [3/4]

NexStarAUXScope::NexStarAUXScope ( char const ip)

◆ NexStarAUXScope() [4/4]

NexStarAUXScope::NexStarAUXScope ( )

◆ ~NexStarAUXScope()

NexStarAUXScope::~NexStarAUXScope ( )

Member Function Documentation

◆ Abort()

bool NexStarAUXScope::Abort ( )

◆ closeConnection()

void NexStarAUXScope::closeConnection ( )
private

◆ Connect()

bool NexStarAUXScope::Connect ( int  PortFD)

◆ detectScope()

bool NexStarAUXScope::detectScope ( )
private

◆ Disconnect()

bool NexStarAUXScope::Disconnect ( )

◆ emulateGPS()

void NexStarAUXScope::emulateGPS ( AUXCommand m)
private

◆ GetALT()

long NexStarAUXScope::GetALT ( )

◆ GetAZ()

long NexStarAUXScope::GetAZ ( )

◆ GoToFast()

bool NexStarAUXScope::GoToFast ( long  alt,
long  az,
bool  track 
)

◆ GoToSlow()

bool NexStarAUXScope::GoToSlow ( long  alt,
long  az,
bool  track 
)

◆ initScope() [1/2]

void NexStarAUXScope::initScope ( char const ip,
int  port 
)
private

◆ initScope() [2/2]

void NexStarAUXScope::initScope ( )
private

◆ Park()

bool NexStarAUXScope::Park ( )

◆ processCmd()

void NexStarAUXScope::processCmd ( AUXCommand cmd)
private

◆ querryStatus()

void NexStarAUXScope::querryStatus ( )
private

◆ readMsgs()

void NexStarAUXScope::readMsgs ( )
private

◆ sendCmd()

bool NexStarAUXScope::sendCmd ( AUXCommand c)
private

◆ Slew()

bool NexStarAUXScope::Slew ( AUXtargets  trg,
int  rate 
)

◆ SlewALT()

bool NexStarAUXScope::SlewALT ( int  rate)

◆ SlewAZ()

bool NexStarAUXScope::SlewAZ ( int  rate)

◆ slewing()

bool NexStarAUXScope::slewing ( )

◆ TimerTick()

bool NexStarAUXScope::TimerTick ( double  dt)

◆ Track()

bool NexStarAUXScope::Track ( long  altRate,
long  azRate 
)

◆ UpdateLocation()

bool NexStarAUXScope::UpdateLocation ( double  lat,
double  lon,
double  elev 
)

Member Data Documentation

◆ addr

struct sockaddr_in NexStarAUXScope::addr
private

◆ Alt

long NexStarAUXScope::Alt
private

◆ AltRate

long NexStarAUXScope::AltRate
private

◆ Az

long NexStarAUXScope::Az
private

◆ AzRate

long NexStarAUXScope::AzRate
private

◆ Elv

double NexStarAUXScope::Elv
private

◆ Lat

double NexStarAUXScope::Lat
private

◆ Lon

double NexStarAUXScope::Lon
private

◆ simulator

bool NexStarAUXScope::simulator = false
private

◆ slewingAlt

bool NexStarAUXScope::slewingAlt
private

◆ slewingAz

bool NexStarAUXScope::slewingAz
private

◆ slewRate

long NexStarAUXScope::slewRate
private

◆ sock

int NexStarAUXScope::sock
private

◆ STEPS_PER_REVOLUTION

const long NexStarAUXScope::STEPS_PER_REVOLUTION = 16777216
staticprivate

◆ targetAlt

long NexStarAUXScope::targetAlt
private

◆ targetAz

long NexStarAUXScope::targetAz
private

◆ tracking

bool NexStarAUXScope::tracking
private

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