kstars
orionatlas.cpp File Reference
#include "orionatlas.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <math.h>
#include <unistd.h>
#include <time.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <termios.h>

Go to the source code of this file.
Defines | |
| #define | ATLAS_DEBUG 1 |
| #define | ATLAS_MAX_ALT 90.0 |
| #define | ATLAS_MAX_AZ 360.0 |
| #define | ATLAS_MAX_DEC 90.0 |
| #define | ATLAS_MAX_RA 24.0 |
| #define | ATLAS_MIN_ALT -90.0 |
| #define | ATLAS_MIN_AZ 0.0 |
| #define | ATLAS_MIN_DEC -90.0 |
| #define | ATLAS_MIN_RA 0.0 |
| #define | BASIC_GROUP "Main Control" |
| #define | COMM_GROUP "Communication" |
| #define | lat geo[0].value |
| #define | lon geo[1].value |
| #define | mydev "OrionAtlas" |
| #define | POLLMS 5000 |
| #define | SETUP_GROUP "Setup" |
Functions | |
| void | ISGetProperties (const char *dev) |
| void | ISInit () |
| void | ISNewBLOB (const char *dev, const char *name, int sizes[], int blobsizes[], char *blobs[], char *formats[], char *names[], int n) |
| 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 | ISPoll (void *) |
| void | ISSnoopDevice (XMLEle *root) |
Variables | |
| static INumber | aa [] |
| static INumberVectorProperty | aaNum |
| static INumber | eq [] |
| static INumberVectorProperty | eqNum |
| static INumber | geo [] |
| static INumberVectorProperty | geoNum |
| char * | me |
| static ISwitch | MovementAzAltS [] = {{"XAZPLUS", "Az+", ISS_OFF, 0, 0}, {"XAZMINUS", "Az-", ISS_OFF, 0, 0}, {"XALTPLUS", "Alt+", ISS_OFF, 0, 0}, {"XALTMINUS", "Alt-", ISS_OFF, 0, 0}} |
| static ISwitchVectorProperty | MovementAzAltSw = { mydev, "XAZALTMOVEMENT", "Nudge", BASIC_GROUP, IP_RW, ISR_1OFMANY, 0, IPS_OK, MovementAzAltS, NARRAY(MovementAzAltS), "", 0} |
| static ISwitch | MovementRADecS [] = {{"XRAPLUS", "RA+", ISS_OFF, 0, 0}, {"XRAMINUS", "RA-", ISS_OFF, 0, 0}, {"XDECPLUS", "Dec+", ISS_OFF, 0, 0}, {"XDECMINUS", "Dec-", ISS_OFF, 0, 0}} |
| static ISwitchVectorProperty | MovementRADecSw = { mydev, "XRADECMOVEMENT", "Nudge", BASIC_GROUP, IP_RW, ISR_1OFMANY, 0, IPS_OK, MovementRADecS, NARRAY(MovementRADecS), "", 0} |
| static ISwitch | OnCoordSetS [] = {{"TRACK", "Track", ISS_ON, 0, 0}} |
| static ISwitchVectorProperty | OnCoordSetSw |
| static ITextVectorProperty | Port = { mydev, "DEVICE_PORT", "Ports", COMM_GROUP, IP_RW, 0, IPS_OK, PortT, NARRAY(PortT), "", 0} |
| static IText | PortT [] = {{"PORT", "Port", 0, 0, 0, 0}} |
| static ISwitch | PowerS [] = {{"CONNECT","Connect",ISS_OFF,0,0},{"DISCONNECT","Disconnect",ISS_ON,0,0},{"RECONNECT","Reconnect",ISS_OFF,0,0}} |
| static ISwitchVectorProperty | PowerSw = { mydev, "CONNECTION" , "Connection", COMM_GROUP, IP_RW, ISR_1OFMANY, 0, IPS_IDLE, PowerS, NARRAY(PowerS), "", 0} |
| static INumberVectorProperty | stepNum |
| static INumber | steps [] |
| OrionAtlas * | telescope = NULL |
| static ISwitch | UpdateS [] = {{"UPDATE1", "On", ISS_ON, 0, 0},{"UPDATE0","Off", ISS_OFF,0,0}} |
| static ISwitchVectorProperty | UpdateSw = { mydev, "XUPDATE", "Update Coords", BASIC_GROUP, IP_RW, ISR_1OFMANY, 0, IPS_OK, UpdateS, NARRAY(UpdateS), "", 0} |
Define Documentation
| #define ATLAS_DEBUG 1 |
Definition at line 35 of file orionatlas.cpp.
| #define ATLAS_MAX_ALT 90.0 |
Definition at line 64 of file orionatlas.cpp.
| #define ATLAS_MAX_AZ 360.0 |
Definition at line 62 of file orionatlas.cpp.
| #define ATLAS_MAX_DEC 90.0 |
Definition at line 59 of file orionatlas.cpp.
| #define ATLAS_MAX_RA 24.0 |
Definition at line 57 of file orionatlas.cpp.
| #define ATLAS_MIN_ALT -90.0 |
Definition at line 63 of file orionatlas.cpp.
| #define ATLAS_MIN_AZ 0.0 |
Definition at line 61 of file orionatlas.cpp.
| #define ATLAS_MIN_DEC -90.0 |
Definition at line 58 of file orionatlas.cpp.
| #define ATLAS_MIN_RA 0.0 |
Definition at line 56 of file orionatlas.cpp.
| #define BASIC_GROUP "Main Control" |
Definition at line 53 of file orionatlas.cpp.
| #define COMM_GROUP "Communication" |
Definition at line 52 of file orionatlas.cpp.
| #define lat geo[0].value |
Definition at line 38 of file orionatlas.cpp.
| #define lon geo[1].value |
Definition at line 39 of file orionatlas.cpp.
| #define mydev "OrionAtlas" |
Definition at line 34 of file orionatlas.cpp.
| #define POLLMS 5000 |
Definition at line 36 of file orionatlas.cpp.
| #define SETUP_GROUP "Setup" |
Definition at line 54 of file orionatlas.cpp.
Function Documentation
| void ISInit | ( | ) |
Definition at line 118 of file orionatlas.cpp.
| void ISNewNumber | ( | const char * | dev, | |
| const char * | name, | |||
| double | values[], | |||
| char * | names[], | |||
| int | n | |||
| ) |
Definition at line 143 of file orionatlas.cpp.
| void ISPoll | ( | void * | p | ) | [static] |
Definition at line 145 of file orionatlas.cpp.
Variable Documentation
Initial value:
{
{"XAZ", "Az (ddd:mm.m)", "%010.5m", ATLAS_MIN_AZ, ATLAS_MAX_AZ, 0.0, 0.0, 0, 0, 0},
{"XALT", "Alt (dd:mm.m)", "%010.5m", ATLAS_MIN_ALT, ATLAS_MAX_ALT, 0.0, 0.0, 0, 0, 0}}
Definition at line 82 of file orionatlas.cpp.
INumberVectorProperty aaNum [static] |
Initial value:
{
mydev, "XHORIZONTAL_COORD", "Horz. Coordinates", BASIC_GROUP, IP_RW, 0, IPS_OK, aa, NARRAY(aa), "", 0}
Definition at line 88 of file orionatlas.cpp.
Initial value:
{
{"RA", "RA (hh:mm.m)", "%010.5m", ATLAS_MIN_RA, ATLAS_MAX_RA, 0., 0., 0, 0, 0},
{"DEC", "Dec (dd:mm.m)", "%010.5m", ATLAS_MIN_DEC, ATLAS_MAX_DEC, 0., 0., 0, 0, 0}}
Definition at line 78 of file orionatlas.cpp.
INumberVectorProperty eqNum [static] |
Initial value:
{
mydev, "EQUATORIAL_EOD_COORD", "Eq. Coordinates", BASIC_GROUP, IP_RW, 0, IPS_OK, eq, NARRAY(eq), "", 0}
Definition at line 85 of file orionatlas.cpp.
Initial value:
{
{"LAT", "Lat (dd:mm.m)", "%010.5m", -90.0, 90.0, 0.0, 0.0, 0, 0, 0},
{"LONG", "Lon (ddd:mm.m)", "%010.5m", -180.0, 360.0, 0.0, 0.0, 0, 0, 0}}
Definition at line 109 of file orionatlas.cpp.
INumberVectorProperty geoNum [static] |
Initial value:
{
mydev, "GEOGRAPHIC_COORD", "Scope Location", SETUP_GROUP, IP_RW, 0, IPS_OK, geo, NARRAY(geo), "", 0}
Definition at line 112 of file orionatlas.cpp.
| char* me |
ISwitch MovementAzAltS[] = {{"XAZPLUS", "Az+", ISS_OFF, 0, 0}, {"XAZMINUS", "Az-", ISS_OFF, 0, 0}, {"XALTPLUS", "Alt+", ISS_OFF, 0, 0}, {"XALTMINUS", "Alt-", ISS_OFF, 0, 0}} [static] |
Definition at line 96 of file orionatlas.cpp.
ISwitchVectorProperty MovementAzAltSw = { mydev, "XAZALTMOVEMENT", "Nudge", BASIC_GROUP, IP_RW, ISR_1OFMANY, 0, IPS_OK, MovementAzAltS, NARRAY(MovementAzAltS), "", 0} [static] |
Definition at line 98 of file orionatlas.cpp.
ISwitch MovementRADecS[] = {{"XRAPLUS", "RA+", ISS_OFF, 0, 0}, {"XRAMINUS", "RA-", ISS_OFF, 0, 0}, {"XDECPLUS", "Dec+", ISS_OFF, 0, 0}, {"XDECMINUS", "Dec-", ISS_OFF, 0, 0}} [static] |
Definition at line 95 of file orionatlas.cpp.
ISwitchVectorProperty MovementRADecSw = { mydev, "XRADECMOVEMENT", "Nudge", BASIC_GROUP, IP_RW, ISR_1OFMANY, 0, IPS_OK, MovementRADecS, NARRAY(MovementRADecS), "", 0} [static] |
Definition at line 97 of file orionatlas.cpp.
ISwitch OnCoordSetS[] = {{"TRACK", "Track", ISS_ON, 0, 0}} [static] |
Definition at line 91 of file orionatlas.cpp.
ISwitchVectorProperty OnCoordSetSw [static] |
Initial value:
{
mydev, "ON_COORD_SET", "On Set", BASIC_GROUP, IP_RW, ISR_1OFMANY, 0, IPS_OK, OnCoordSetS, NARRAY(OnCoordSetS), "", 0}
Definition at line 92 of file orionatlas.cpp.
ITextVectorProperty Port = { mydev, "DEVICE_PORT", "Ports", COMM_GROUP, IP_RW, 0, IPS_OK, PortT, NARRAY(PortT), "", 0} [static] |
Definition at line 74 of file orionatlas.cpp.
Definition at line 73 of file orionatlas.cpp.
ISwitch PowerS[] = {{"CONNECT","Connect",ISS_OFF,0,0},{"DISCONNECT","Disconnect",ISS_ON,0,0},{"RECONNECT","Reconnect",ISS_OFF,0,0}} [static] |
Definition at line 71 of file orionatlas.cpp.
ISwitchVectorProperty PowerSw = { mydev, "CONNECTION" , "Connection", COMM_GROUP, IP_RW, ISR_1OFMANY, 0, IPS_IDLE, PowerS, NARRAY(PowerS), "", 0} [static] |
Definition at line 72 of file orionatlas.cpp.
INumberVectorProperty stepNum [static] |
Initial value:
Definition at line 114 of file orionatlas.cpp.
Initial value:
{
{"XRASTEP", "RA Step", "%010.6m", 0.0, 5.0, 0.0, 0.0, 0, 0, 0},
{"XDECSTEP", "Dec Step", "%010.6m", 0.0, 5.0, 0.0, 0.0, 0, 0, 0},
{"XAZSTEP", "Az Step", "%010.6m", 0.0, 5.0, 0.0, 0.0, 0, 0, 0},
{"XALTSTEP", "Alt Step", "%010.6m", 0.0, 5.0, 0.0, 0.0, 0, 0, 0}}
Definition at line 103 of file orionatlas.cpp.
| OrionAtlas* telescope = NULL |
Definition at line 41 of file orionatlas.cpp.
Definition at line 94 of file orionatlas.cpp.
ISwitchVectorProperty UpdateSw = { mydev, "XUPDATE", "Update Coords", BASIC_GROUP, IP_RW, ISR_1OFMANY, 0, IPS_OK, UpdateS, NARRAY(UpdateS), "", 0} [static] |
Definition at line 99 of file orionatlas.cpp.
KDE 4.2 API Reference