kstars
temmadriver.h File Reference
Go to the source code of this file.
Defines | |
#define | BB 0x40 |
#define | COMM_GROUP "Communication" |
#define | currentDec eq[1].value |
#define | currentLST STime[0].value |
#define | currentRA eq[0].value |
#define | currentUTC UTC[0].value |
#define | DATETIME_GROUP "Date/Time/Location" |
#define | DD 0x10 |
#define | DEGRAD (M_PI/180) |
#define | DU 0x08 |
#define | ECOMMAND (-5) |
#define | EN 0x20 |
#define | EREAD (-3) |
#define | ETIMEOUT (-2) |
#define | EWRITE (-4) |
#define | HRAD (M_PI/12) |
#define | HS 0x01 |
#define | latitude geo[0].value |
#define | longitude geo[1].value |
#define | MAIN_GROUP "Main Control" |
#define | MOVE_GROUP "Movement Control" |
#define | mydev "Temma" |
#define | POLLMS 1000 |
#define | POWSW (power[0].s==ISS_ON) |
#define | RL 0x04 |
#define | RR 0x02 |
#define | SLEWRATE 1 |
#define | SLEWSW OnCoordSetS[0].s |
#define | SUCCESS (2) |
#define | SYNCSW OnCoordSetS[1].s |
#define | TEMMA_TIMEOUT 1 |
#define | temmaDec eqtem[1].value |
#define | temmaRA eqtem[0].value |
#define | TRACKSW OnCoordSetS[2].s |
#define | VERSION "Temma indi driver Ver 0.0, fm-2004/10/09" |
Functions | |
double | calcLST (char *strlst) |
static void | connectMount (void) |
static void | disconnectMount (void) |
int | do_TemmaGOTO (void) |
int | do_TemmaSLEW (char mode) |
int | extractDEC (char *buf) |
int | extractRA (char *buf) |
int | get_TemmaBOTHcorrspeed (char *buffer) |
int | get_TemmaCometTracking (char *buffer) |
int | get_TemmaCurrentpos (char *buffer) |
int | get_TemmaDECcorrspeed (char *buffer) |
int | get_TemmaGOTOstatus (char *buffer) |
int | get_TemmaLatitude (char *buffer) |
int | get_TemmaLST (char *buffer) |
int | get_TemmaRAcorrspeed (char *buffer) |
int | get_TemmaStandbyState (unsigned char *buffer) |
int | get_TemmaVERSION (char *buffer) |
void | ISGetProperties (const char *dev) |
void | ISNewNumber (const char *dev, const char *name, double values[], char *names[], int n) |
void | ISNewSwitch (const char *dev, const char *name, ISState *states, char *names[], int n) |
void | ISNewText (const char *dev, const char *name, char *texts[], char *names[], int n) |
static void | mountInit (void) |
int | openPort (const char *portID) |
int | portRead (char *buf, int nbytes, int timeout) |
int | portWrite (char *buf) |
static void | readMountcurrentpos (void *) |
int | set_CometTracking (int RArate, int DECrate) |
int | set_TemmaCometTracking (char *buffer) |
int | set_TemmaCurrentpos (void) |
int | set_TemmaDECcorrspeed (char *buffer) |
int | set_TemmaLatitude (char *buffer) |
int | set_TemmaLST (char *buffer) |
int | set_TemmaRAcorrspeed (char *buffer) |
int | set_TemmaSolarRate (void) |
int | set_TemmaStandbyState (int on) |
int | set_TemmaStellarRate (void) |
int | switch_Temmamountside (void) |
int | TemmaabortSlew (void) |
int | TemmaConnect (const char *device) |
int | TemmaDisconnect (void) |
int | TemmareadOut (int timeout) |
Variables | |
static ISwitch | abortSlewS [] |
static ISwitchVectorProperty | abortSlewSw |
static INumber | comet [] |
static INumberVectorProperty | cometNum |
static INumber | eq [] |
static INumberVectorProperty | eqNum |
static INumber | eqtem [] |
static INumberVectorProperty | eqTemma |
static INumber | geo [] |
static INumberVectorProperty | geoNum |
static ISwitch | OnCoordSetS [] |
static ISwitchVectorProperty | OnCoordSetSw |
static ITextVectorProperty | Port |
static IText | PortT [] = {{"PORT", "Port", 0, 0, 0, 0}} |
static ISwitch | power [] |
static ISwitchVectorProperty | powSw |
static ISwitch | RAmotor [] |
static ISwitchVectorProperty | RAmotorSw |
INumberVectorProperty | SDTime |
static INumber | STime [] |
static IText | TemmaNoteT [] = {{"Note", "", 0, 0, 0, 0}, {"Feedback", "", 0, 0,0 ,0}} |
static ITextVectorProperty | TemmaNoteTP = { mydev, "Temma Driver", "", MAIN_GROUP, IP_RO, 0, IPS_OK, TemmaNoteT, NARRAY(TemmaNoteT), "", 0} |
static ITextVectorProperty | TemmaVersion |
static IText | TemmaVersionT [] = {{"VERSION", "Version", 0, 0, 0, 0}} |
INumberVectorProperty | Time |
static ISwitch | trackmode [] |
static ISwitchVectorProperty | trackmodeSw |
static INumber | UTC [] |
Define Documentation
#define BB 0x40 |
Definition at line 35 of file temmadriver.h.
#define COMM_GROUP "Communication" |
Definition at line 53 of file temmadriver.h.
#define currentDec eq[1].value |
Definition at line 70 of file temmadriver.h.
#define currentLST STime[0].value |
Definition at line 68 of file temmadriver.h.
#define currentRA eq[0].value |
Definition at line 69 of file temmadriver.h.
#define currentUTC UTC[0].value |
Definition at line 67 of file temmadriver.h.
#define DATETIME_GROUP "Date/Time/Location" |
Definition at line 55 of file temmadriver.h.
#define DD 0x10 |
Definition at line 33 of file temmadriver.h.
#define DEGRAD (M_PI/180) |
Definition at line 40 of file temmadriver.h.
#define DU 0x08 |
Definition at line 32 of file temmadriver.h.
#define ECOMMAND (-5) |
Definition at line 48 of file temmadriver.h.
#define EN 0x20 |
Definition at line 34 of file temmadriver.h.
#define EREAD (-3) |
Definition at line 46 of file temmadriver.h.
#define ETIMEOUT (-2) |
Definition at line 45 of file temmadriver.h.
#define EWRITE (-4) |
Definition at line 47 of file temmadriver.h.
#define HRAD (M_PI/12) |
Definition at line 39 of file temmadriver.h.
#define HS 0x01 |
Definition at line 29 of file temmadriver.h.
#define latitude geo[0].value |
Definition at line 65 of file temmadriver.h.
#define longitude geo[1].value |
Definition at line 66 of file temmadriver.h.
#define MAIN_GROUP "Main Control" |
Definition at line 52 of file temmadriver.h.
#define MOVE_GROUP "Movement Control" |
Definition at line 54 of file temmadriver.h.
#define mydev "Temma" |
Definition at line 51 of file temmadriver.h.
#define POLLMS 1000 |
Definition at line 63 of file temmadriver.h.
#define POWSW (power[0].s==ISS_ON) |
Definition at line 60 of file temmadriver.h.
#define RL 0x04 |
Definition at line 31 of file temmadriver.h.
#define RR 0x02 |
Definition at line 30 of file temmadriver.h.
#define SLEWRATE 1 |
Definition at line 62 of file temmadriver.h.
#define SLEWSW OnCoordSetS[0].s |
Definition at line 57 of file temmadriver.h.
#define SUCCESS (2) |
Definition at line 44 of file temmadriver.h.
#define SYNCSW OnCoordSetS[1].s |
Definition at line 58 of file temmadriver.h.
#define TEMMA_TIMEOUT 1 |
Definition at line 41 of file temmadriver.h.
#define temmaDec eqtem[1].value |
Definition at line 72 of file temmadriver.h.
#define temmaRA eqtem[0].value |
Definition at line 71 of file temmadriver.h.
#define TRACKSW OnCoordSetS[2].s |
Definition at line 59 of file temmadriver.h.
#define VERSION "Temma indi driver Ver 0.0, fm-2004/10/09" |
Definition at line 25 of file temmadriver.h.
Function Documentation
double calcLST | ( | char * | strlst | ) |
static void connectMount | ( | void | ) | [static] |
static void disconnectMount | ( | void | ) | [static] |
int do_TemmaGOTO | ( | void | ) |
int do_TemmaSLEW | ( | char | mode | ) |
int extractDEC | ( | char * | buf | ) |
int extractRA | ( | char * | buf | ) |
int get_TemmaBOTHcorrspeed | ( | char * | buffer | ) |
int get_TemmaCometTracking | ( | char * | buffer | ) |
int get_TemmaCurrentpos | ( | char * | buffer | ) |
int get_TemmaDECcorrspeed | ( | char * | buffer | ) |
int get_TemmaGOTOstatus | ( | char * | buffer | ) |
int get_TemmaLatitude | ( | char * | buffer | ) |
int get_TemmaLST | ( | char * | buffer | ) |
int get_TemmaRAcorrspeed | ( | char * | buffer | ) |
int get_TemmaStandbyState | ( | unsigned char * | buffer | ) |
int get_TemmaVERSION | ( | char * | buffer | ) |
void ISGetProperties | ( | const char * | dev | ) |
Function defined by Drivers that is called when a Client asks for the definitions of all Properties this Driver supports for the given device.
- Parameters:
-
dev the name of the device.
Definition at line 113 of file apmount.cpp.
void ISNewNumber | ( | const char * | dev, | |
const char * | name, | |||
double | values[], | |||
char * | names[], | |||
int | n | |||
) |
Definition at line 131 of file apmount.cpp.
static void mountInit | ( | void | ) | [static] |
int openPort | ( | const char * | portID | ) |
int portRead | ( | char * | buf, | |
int | nbytes, | |||
int | timeout | |||
) |
int portWrite | ( | char * | buf | ) |
static void readMountcurrentpos | ( | void * | ) | [static] |
int set_CometTracking | ( | int | RArate, | |
int | DECrate | |||
) |
int set_TemmaCometTracking | ( | char * | buffer | ) |
int set_TemmaCurrentpos | ( | void | ) |
int set_TemmaDECcorrspeed | ( | char * | buffer | ) |
int set_TemmaLatitude | ( | char * | buffer | ) |
int set_TemmaLST | ( | char * | buffer | ) |
int set_TemmaRAcorrspeed | ( | char * | buffer | ) |
int set_TemmaSolarRate | ( | void | ) |
int set_TemmaStandbyState | ( | int | on | ) |
int set_TemmaStellarRate | ( | void | ) |
int switch_Temmamountside | ( | void | ) |
int TemmaabortSlew | ( | void | ) |
int TemmaConnect | ( | const char * | device | ) |
int TemmaDisconnect | ( | void | ) |
int TemmareadOut | ( | int | timeout | ) |
Variable Documentation
ISwitch abortSlewS[] [static] |
ISwitchVectorProperty abortSlewSw [static] |
Initial value:
{ mydev, "ABORT_MOTION", "******* ABORT GOTO *********", MAIN_GROUP, IP_RW, ISR_1OFMANY, 0, IPS_IDLE, abortSlewS, NARRAY(abortSlewS), "", 0}
Definition at line 237 of file temmadriver.h.
Initial value:
{ {"RAcorrspeed","Comet RA motion arcmin/day","%+5d",-21541,21541,0,0,0,0,0}, {"DECcor rspeed", "Comet DEC motion arcmin/day", "%+4d", -600, 600,0, 0., 0, 0, 0} }
Definition at line 198 of file temmadriver.h.
INumberVectorProperty cometNum [static] |
Initial value:
{ mydev, "COMET_TRACKING", "Comet tracking parameters", MOVE_GROUP, IP_RW, 0, IPS_IDLE, comet, NARRAY(comet), "", 0}
Definition at line 203 of file temmadriver.h.
Initial value:
{ {"RA" ,"RA H:M:S" , "%10.6m", 0, 24, 0, 0, 0, 0, 0}, {"DEC", "Dec D:M:S", "%10.6m", -90, 90, 0, 0, 0, 0, 0} }
Definition at line 177 of file temmadriver.h.
INumberVectorProperty eqNum [static] |
Initial value:
{ mydev, "EQUATORIAL_EOD_COORD", "Equatorial JNow", MAIN_GROUP , IP_RW, 0, IPS_IDLE, eq, NARRAY(eq), "", 0}
Definition at line 181 of file temmadriver.h.
Initial value:
{ {"RA", "RA H:M:S", "%10.6m", 0, 24, 0, 0, 0, 0, 0}, {"DEC", "Dec D:M:S", "%10.6m", -90, 90, 0, 0, 0, 0, 0} }
Definition at line 188 of file temmadriver.h.
INumberVectorProperty eqTemma [static] |
Initial value:
{ mydev, "Temma", "Mount coordinates", MAIN_GROUP , IP_RO, 0, IPS_IDLE, eqtem, NARRAY(eqtem), "", 0}
Definition at line 192 of file temmadriver.h.
Initial value:
{ {"LAT", "Lat. D:M:S +N", "%10.6m", -90., 90., 0., 0., 0, 0, 0}, {"LONG", "Long. D:M:S +E", "%10.6m", 0., 360., 0., 0., 0, 0, 0} }
Definition at line 243 of file temmadriver.h.
INumberVectorProperty geoNum [static] |
Initial value:
{ mydev, "GEOGRAPHIC_COORD", "Geographic Location", DATETIME_GROUP, IP_RW, 0., IPS_IDLE, geo, NARRAY(geo), "", 0}
Definition at line 247 of file temmadriver.h.
ISwitch OnCoordSetS[] [static] |
Initial value:
{ {"SLEW", "Goto", ISS_OFF, 0, 0 }, {"SYNC", "Sync", ISS_ON, 0 , 0}, {"TRACK", "Track", ISS_OFF, 0, 0 }}
Definition at line 223 of file temmadriver.h.
ISwitchVectorProperty OnCoordSetSw [static] |
Initial value:
{ mydev, "ON_COORD_SET", "On Set", MAIN_GROUP, IP_RW, ISR_1OFMANY, 0, IPS_IDLE, OnCoordSetS, NARRAY(OnCoordSetS), "", 0}
Definition at line 228 of file temmadriver.h.
ITextVectorProperty Port [static] |
Initial value:
Definition at line 170 of file temmadriver.h.
Definition at line 169 of file temmadriver.h.
Initial value:
Definition at line 144 of file temmadriver.h.
ISwitchVectorProperty powSw [static] |
Initial value:
{ mydev, "CONNECTION", "Connection", MAIN_GROUP, IP_RW, ISR_ATMOST1, 0, IPS_IDLE, power, NARRAY(power), "", 0}
Definition at line 147 of file temmadriver.h.
Initial value:
Definition at line 121 of file temmadriver.h.
ISwitchVectorProperty RAmotorSw [static] |
Initial value:
{ mydev, "RA motor", "RA motor", MOVE_GROUP, IP_RW, ISR_ATMOST1, 0, IPS_IDLE, RAmotor, NARRAY(RAmotor), "", 0}
Definition at line 125 of file temmadriver.h.
Initial value:
{ mydev, "SDTIME", "Sidereal Time", DATETIME_GROUP, IP_RW, 0, IPS_IDLE, STime, NARRAY(STime), "", 0}
Definition at line 218 of file temmadriver.h.
Initial value:
{ {"LST", "Sidereal time", "%10.6m" , 0.,0.,0.,0., 0, 0, 0}}
Definition at line 214 of file temmadriver.h.
IText TemmaNoteT[] = {{"Note", "", 0, 0, 0, 0}, {"Feedback", "", 0, 0,0 ,0}} [static] |
Definition at line 163 of file temmadriver.h.
ITextVectorProperty TemmaNoteTP = { mydev, "Temma Driver", "", MAIN_GROUP, IP_RO, 0, IPS_OK, TemmaNoteT, NARRAY(TemmaNoteT), "", 0} [static] |
Definition at line 164 of file temmadriver.h.
ITextVectorProperty TemmaVersion [static] |
Initial value:
{ mydev, "VERSION", "Temma version", COMM_GROUP, IP_RO, 0, IPS_OK, TemmaVersionT, NARRAY(TemmaVersionT), "", 0}
Definition at line 155 of file temmadriver.h.
IText TemmaVersionT[] = {{"VERSION", "Version", 0, 0, 0, 0}} [static] |
Definition at line 154 of file temmadriver.h.
Initial value:
Definition at line 210 of file temmadriver.h.
Initial value:
{ {"Sidereal", "Sidereal", ISS_ON, 0, 0}, {"Lunar", "Lunar", ISS_OFF, 0, 0}, {"Comet", "Comet", ISS_OFF, 0, 0}, }
Definition at line 132 of file temmadriver.h.
ISwitchVectorProperty trackmodeSw [static] |
Initial value:
{ mydev, "Tracking mode", "Tracking mode", MOVE_GROUP, IP_RW, ISR_1OFMANY, 0, IPS_IDLE, trackmode, NARRAY(trackmode), "", 0}
Definition at line 137 of file temmadriver.h.
Initial value:
{ {"UTC", "UTC", "%10.6m" , 0.,0.,0.,0., 0, 0, 0}}
Definition at line 208 of file temmadriver.h.