2001-12-27 21:41:11 +00:00
|
|
|
/*
|
|
|
|
* Hamlib Interface - Rotator API header
|
2005-03-26 23:33:39 +00:00
|
|
|
* Copyright (c) 2000-2005 by Stephane Fillod
|
2001-12-27 21:41:11 +00:00
|
|
|
*
|
2008-10-27 22:23:36 +00:00
|
|
|
* $Id: rotator.h,v 1.16 2008-10-27 22:23:36 fillods Exp $
|
2001-12-27 21:41:11 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Library General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of
|
|
|
|
* the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2001-12-28 20:30:58 +00:00
|
|
|
#ifndef _ROTATOR_H
|
|
|
|
#define _ROTATOR_H 1
|
2001-12-27 21:41:11 +00:00
|
|
|
|
|
|
|
#include <hamlib/rig.h>
|
|
|
|
#include <hamlib/rotlist.h>
|
|
|
|
|
2006-10-15 00:27:52 +00:00
|
|
|
/**
|
|
|
|
* \addtogroup rotator
|
|
|
|
* @{
|
|
|
|
*/
|
2001-12-27 21:41:11 +00:00
|
|
|
|
2002-11-09 13:09:02 +00:00
|
|
|
/*! \file rotator.h
|
|
|
|
* \brief Hamlib rotator data structures.
|
|
|
|
*
|
|
|
|
* This file contains the data structures and definitions for the Hamlib rotator API.
|
|
|
|
* see the rotator.c file for more details on the rotator API.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
2001-12-27 21:41:11 +00:00
|
|
|
__BEGIN_DECLS
|
|
|
|
|
|
|
|
/* Forward struct references */
|
|
|
|
|
|
|
|
struct rot;
|
|
|
|
struct rot_state;
|
|
|
|
|
2002-11-09 13:09:02 +00:00
|
|
|
/*! \typedef typedef struct rot ROT
|
|
|
|
* \brief Rotator structure definition (see rot for details).
|
|
|
|
*/
|
2001-12-27 21:41:11 +00:00
|
|
|
typedef struct rot ROT;
|
|
|
|
|
2002-11-09 13:09:02 +00:00
|
|
|
|
|
|
|
/*! \typedef typedef float elevation_t
|
|
|
|
* \brief Type definition for elevation.
|
|
|
|
*
|
|
|
|
* The elevation_t type is used as parameter for the
|
|
|
|
* rot_set_position() and rot_get_position() functions.
|
2002-11-12 00:11:54 +00:00
|
|
|
*
|
|
|
|
* Unless specified otherwise, the unit of elevation_t is decimal degrees.
|
2002-11-09 13:09:02 +00:00
|
|
|
*/
|
|
|
|
/*! \typedef typedef float azimuth_t
|
|
|
|
* \brief Type definition for azimuth.
|
|
|
|
*
|
|
|
|
* The azimuth_t type is used as parameter for the
|
|
|
|
* rot_set_position() and rot_get_position() functions.
|
2002-11-12 00:11:54 +00:00
|
|
|
*
|
|
|
|
* Unless specified otherwise, the unit of azimuth_t is decimal degrees.
|
2002-11-09 13:09:02 +00:00
|
|
|
*/
|
2001-12-27 21:41:11 +00:00
|
|
|
typedef float elevation_t;
|
|
|
|
typedef float azimuth_t;
|
|
|
|
|
2008-10-27 22:23:36 +00:00
|
|
|
/** \brief Token in the netrotctl protocol for returning error code */
|
|
|
|
#define NETROTCTL_RET "RPRT "
|
|
|
|
|
2003-04-27 22:14:40 +00:00
|
|
|
/*! \def ROT_RESET_ALL
|
|
|
|
* \brief A macro that returns the flag for the \b reset operation.
|
|
|
|
* \sa rot_reset(), rot_reset_t
|
|
|
|
*/
|
|
|
|
#define ROT_RESET_ALL 1
|
2002-11-09 13:09:02 +00:00
|
|
|
|
|
|
|
/*! \typedef typedef int rot_reset_t
|
|
|
|
* \brief Type definition for rotator reset.
|
|
|
|
*
|
|
|
|
* The rot_reset_t type is used as parameter for
|
|
|
|
* the rot_reset() API function.
|
|
|
|
*/
|
2001-12-28 20:30:58 +00:00
|
|
|
typedef int rot_reset_t;
|
|
|
|
|
2001-12-27 21:41:11 +00:00
|
|
|
|
2002-11-09 13:09:02 +00:00
|
|
|
/*! \def ROT_FLAG_AZIMUTH
|
|
|
|
* \brief A macro that returns the azimuth flag.
|
|
|
|
*/
|
|
|
|
/*! \def ROT_FLAG_ELEVATION
|
|
|
|
* \brief A macro that returns the elevation flag.
|
|
|
|
*/
|
2001-12-27 21:41:11 +00:00
|
|
|
#define ROT_FLAG_AZIMUTH (1<<1)
|
|
|
|
#define ROT_FLAG_ELEVATION (1<<2)
|
|
|
|
|
2002-01-16 16:52:33 +00:00
|
|
|
#define ROT_TYPE_OTHER 0
|
2001-12-27 21:41:11 +00:00
|
|
|
|
2002-11-09 13:09:02 +00:00
|
|
|
|
|
|
|
/*! \def ROT_MOVE_UP
|
|
|
|
* \brief A macro that returns the flag for the \b UP direction.
|
|
|
|
*
|
|
|
|
* This macro defines the value of the \b UP direction which can be
|
|
|
|
* used with the rot_move() function.
|
|
|
|
*
|
|
|
|
* \sa rot_move(), ROT_MOVE_DOWN, ROT_MOVE_LEFT, ROT_MOVE_CCW, ROT_MOVE_RIGHT, ROT_MOVE_CW
|
|
|
|
*/
|
|
|
|
/*! \def ROT_MOVE_DOWN
|
|
|
|
* \brief A macro that returns the flag for the \b DOWN direction.
|
|
|
|
*
|
|
|
|
* This macro defines the value of the \b DOWN direction which can be
|
|
|
|
* used with the rot_move() function.
|
|
|
|
*
|
|
|
|
* \sa rot_move(), ROT_MOVE_UP, ROT_MOVE_LEFT, ROT_MOVE_CCW, ROT_MOVE_RIGHT, ROT_MOVE_CW
|
|
|
|
*/
|
|
|
|
/*! \def ROT_MOVE_LEFT
|
|
|
|
* \brief A macro that returns the flag for the \b LEFT direction.
|
|
|
|
*
|
|
|
|
* This macro defines the value of the \b LEFT direction which can be
|
|
|
|
* used with the rot_move function.
|
|
|
|
*
|
|
|
|
* \sa rot_move(), ROT_MOVE_UP, ROT_MOVE_DOWN, ROT_MOVE_CCW, ROT_MOVE_RIGHT, ROT_MOVE_CW
|
|
|
|
*/
|
|
|
|
/*! \def ROT_MOVE_CCW
|
|
|
|
* \brief A macro that returns the flag for the \b counterclockwise direction.
|
|
|
|
*
|
|
|
|
* This macro defines the value of the \b counterclockwise direction which
|
|
|
|
* can be used with the rot_move() function. This value is equivalent to
|
|
|
|
* ROT_MOVE_LEFT .
|
|
|
|
*
|
|
|
|
* \sa rot_move(), ROT_MOVE_UP, ROT_MOVE_DOWN, ROT_MOVE_LEFT, ROT_MOVE_RIGHT, ROT_MOVE_CW
|
|
|
|
*/
|
|
|
|
/*! \def ROT_MOVE_RIGHT
|
|
|
|
* \brief A macro that returns the flag for the \b RIGHT direction.
|
|
|
|
*
|
|
|
|
* This macro defines the value of the \b RIGHT direction which can be used
|
|
|
|
* with the rot_move() function.
|
|
|
|
*
|
|
|
|
* \sa rot_move(), ROT_MOVE_UP, ROT_MOVE_DOWN, ROT_MOVE_LEFT, ROT_MOVE_CCW, ROT_MOVE_CW
|
|
|
|
*/
|
|
|
|
/*! \def ROT_MOVE_CW
|
|
|
|
* \brief A macro that returns the flag for the \b clockwise direction.
|
|
|
|
*
|
|
|
|
* This macro defines the value of the \b clockwise direction wich can be
|
|
|
|
* used with the rot_move() function. This value is equivalent to
|
|
|
|
* ROT_MOVE_RIGHT .
|
|
|
|
*
|
|
|
|
* \sa rot_move(), ROT_MOVE_UP, ROT_MOVE_DOWN, ROT_MOVE_LEFT, ROT_MOVE_CCW, ROT_MOVE_RIGHT
|
|
|
|
*/
|
2002-01-16 16:52:33 +00:00
|
|
|
#define ROT_MOVE_UP (1<<1)
|
|
|
|
#define ROT_MOVE_DOWN (1<<2)
|
|
|
|
#define ROT_MOVE_LEFT (1<<3)
|
|
|
|
#define ROT_MOVE_CCW ROT_MOVE_LEFT
|
|
|
|
#define ROT_MOVE_RIGHT (1<<4)
|
|
|
|
#define ROT_MOVE_CW ROT_MOVE_RIGHT
|
2001-12-27 21:41:11 +00:00
|
|
|
|
|
|
|
/* Basic rot type, can store some useful
|
2002-01-16 16:52:33 +00:00
|
|
|
* info about different rotators. Each lib must
|
|
|
|
* be able to populate this structure, so we can make
|
|
|
|
* useful enquiries about capablilities.
|
|
|
|
*/
|
2001-12-27 21:41:11 +00:00
|
|
|
|
2002-11-09 13:09:02 +00:00
|
|
|
/*!
|
|
|
|
* Rotator Caps
|
|
|
|
* \struct rot_caps
|
|
|
|
* \brief Rotator data structure.
|
|
|
|
*
|
2001-12-27 21:41:11 +00:00
|
|
|
* The main idea of this struct is that it will be defined by the backend
|
2002-11-09 13:09:02 +00:00
|
|
|
* rotator driver, and will remain readonly for the application.
|
2001-12-27 21:41:11 +00:00
|
|
|
* Fields that need to be modifiable by the application are
|
|
|
|
* copied into the struct rot_state, which is a kind of private
|
|
|
|
* of the ROT instance.
|
|
|
|
* This way, you can have several rigs running within the same application,
|
|
|
|
* sharing the struct rot_caps of the backend, while keeping their own
|
|
|
|
* customized data.
|
|
|
|
* NB: don't move fields around, as backend depends on it when initializing
|
2002-01-16 16:52:33 +00:00
|
|
|
* their caps.
|
2001-12-27 21:41:11 +00:00
|
|
|
*/
|
|
|
|
struct rot_caps {
|
2002-11-09 13:09:02 +00:00
|
|
|
rot_model_t rot_model; /*!< Rotator model. */
|
|
|
|
const char *model_name; /*!< Model name. */
|
|
|
|
const char *mfg_name; /*!< Manufacturer. */
|
|
|
|
const char *version; /*!< Driver version. */
|
|
|
|
const char *copyright; /*!< Copyright info. */
|
|
|
|
enum rig_status_e status; /*!< Driver status. */
|
|
|
|
|
|
|
|
int rot_type; /*!< Rotator type. */
|
2003-04-27 22:14:40 +00:00
|
|
|
enum rig_port_e port_type; /*!< Type of communication port. */
|
2002-11-09 13:09:02 +00:00
|
|
|
|
|
|
|
int serial_rate_min; /*!< Minimal serial speed. */
|
|
|
|
int serial_rate_max; /*!< Maximal serial speed. */
|
|
|
|
int serial_data_bits; /*!< Number of data bits. */
|
|
|
|
int serial_stop_bits; /*!< Number of stop bits. */
|
|
|
|
enum serial_parity_e serial_parity; /*!< Parity. */
|
|
|
|
enum serial_handshake_e serial_handshake; /*!< Handshake. */
|
|
|
|
|
|
|
|
int write_delay; /*!< Write delay. */
|
|
|
|
int post_write_delay; /*!< Post-write delay. */
|
|
|
|
int timeout; /*!< Timeout. */
|
2002-11-12 00:11:54 +00:00
|
|
|
int retry; /*!< Number of retry if command fails. */
|
2001-12-27 21:41:11 +00:00
|
|
|
|
2002-01-16 16:52:33 +00:00
|
|
|
/*
|
2001-12-27 21:41:11 +00:00
|
|
|
* Movement range, az is relative to North
|
|
|
|
* negative values allowed for overlap
|
|
|
|
*/
|
2002-11-09 13:09:02 +00:00
|
|
|
azimuth_t min_az; /*!< Lower limit for azimuth (relative to North). */
|
|
|
|
azimuth_t max_az; /*!< Upper limit for azimuth (relative to North). */
|
|
|
|
elevation_t min_el; /*!< Lower limit for elevation. */
|
|
|
|
elevation_t max_el; /*!< Upper limit for elevation. */
|
2001-12-27 21:41:11 +00:00
|
|
|
|
|
|
|
|
2002-11-09 13:09:02 +00:00
|
|
|
const struct confparams *cfgparams; /*!< Configuration parametres. */
|
|
|
|
const rig_ptr_t priv; /*!< Private data. */
|
2001-12-27 21:41:11 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Rot Admin API
|
|
|
|
*
|
|
|
|
*/
|
2002-01-16 16:52:33 +00:00
|
|
|
|
2001-12-27 21:41:11 +00:00
|
|
|
int (*rot_init)(ROT *rot);
|
|
|
|
int (*rot_cleanup)(ROT *rot);
|
|
|
|
int (*rot_open)(ROT *rot);
|
|
|
|
int (*rot_close)(ROT *rot);
|
2002-01-16 16:52:33 +00:00
|
|
|
|
2001-12-27 21:41:11 +00:00
|
|
|
int (*set_conf)(ROT *rot, token_t token, const char *val);
|
|
|
|
int (*get_conf)(ROT *rot, token_t token, char *val);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* General API commands, from most primitive to least.. :()
|
|
|
|
* List Set/Get functions pairs
|
|
|
|
*/
|
2002-01-16 16:52:33 +00:00
|
|
|
|
2001-12-27 21:41:11 +00:00
|
|
|
int (*set_position)(ROT *rot, azimuth_t azimuth, elevation_t elevation);
|
|
|
|
int (*get_position)(ROT *rot, azimuth_t *azimuth, elevation_t *elevation);
|
|
|
|
|
|
|
|
int (*stop)(ROT *rot);
|
|
|
|
int (*park)(ROT *rot);
|
2001-12-28 20:30:58 +00:00
|
|
|
int (*reset)(ROT *rot, rot_reset_t reset);
|
2002-01-16 16:52:33 +00:00
|
|
|
int (*move)(ROT *rot, int direction, int speed);
|
2001-12-27 21:41:11 +00:00
|
|
|
|
|
|
|
/* get firmware info, etc. */
|
|
|
|
const char* (*get_info)(ROT *rot);
|
|
|
|
|
|
|
|
/* more to come... */
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2002-11-09 13:09:02 +00:00
|
|
|
/*!
|
2001-12-27 21:41:11 +00:00
|
|
|
* Rotator state
|
2002-11-09 13:09:02 +00:00
|
|
|
* \struct rot_state
|
|
|
|
* \brief Live data and customized fields.
|
2001-12-27 21:41:11 +00:00
|
|
|
*
|
|
|
|
* This struct contains live data, as well as a copy of capability fields
|
|
|
|
* that may be updated (ie. customized)
|
|
|
|
*
|
|
|
|
* It is fine to move fields around, as this kind of struct should
|
|
|
|
* not be initialized like caps are.
|
|
|
|
*/
|
|
|
|
struct rot_state {
|
|
|
|
/*
|
|
|
|
* overridable fields
|
|
|
|
*/
|
2002-11-09 13:09:02 +00:00
|
|
|
azimuth_t min_az; /*!< Lower limit for azimuth (overridable). */
|
|
|
|
azimuth_t max_az; /*!< Upper limit for azimuth (overridable). */
|
|
|
|
elevation_t min_el; /*!< Lower limit for elevation (overridable). */
|
|
|
|
elevation_t max_el; /*!< Upper limit for elevation (overridable). */
|
2001-12-27 21:41:11 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* non overridable fields, internal use
|
|
|
|
*/
|
2005-03-26 23:33:39 +00:00
|
|
|
hamlib_port_t rotport; /*!< Rotator port (internal use). */
|
2001-12-27 21:41:11 +00:00
|
|
|
|
2002-11-09 13:09:02 +00:00
|
|
|
int comm_state; /*!< Comm port state, opened/closed. */
|
2002-11-12 00:11:54 +00:00
|
|
|
rig_ptr_t priv; /*!< Pointer to private rotator state data. */
|
2002-11-09 13:09:02 +00:00
|
|
|
rig_ptr_t obj; /*!< Internal use by hamlib++ for event handling. */
|
2001-12-27 21:41:11 +00:00
|
|
|
|
|
|
|
/* etc... */
|
|
|
|
};
|
|
|
|
|
2002-11-09 13:09:02 +00:00
|
|
|
/**
|
|
|
|
* Rotator structure
|
|
|
|
* \struct rot
|
|
|
|
* \brief This is the master data structure,
|
2001-12-27 21:41:11 +00:00
|
|
|
* acting as a handle for the controlled rotator.
|
2002-11-09 13:09:02 +00:00
|
|
|
*
|
|
|
|
* This is the master data structure, acting as a handle for the controlled
|
|
|
|
* rotator. A pointer to this structure is returned by the rot_init() API
|
|
|
|
* function and is passed as a parameter to every rotator specific API call.
|
|
|
|
*
|
|
|
|
* \sa rot_init(), rot_caps, rot_state
|
2001-12-27 21:41:11 +00:00
|
|
|
*/
|
|
|
|
struct rot {
|
2002-11-09 13:09:02 +00:00
|
|
|
struct rot_caps *caps; /*!< Rotator caps. */
|
|
|
|
struct rot_state state; /*!< Rotator state. */
|
2001-12-27 21:41:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* --------------- API function prototypes -----------------*/
|
|
|
|
|
|
|
|
extern HAMLIB_EXPORT(ROT *) rot_init HAMLIB_PARAMS((rot_model_t rot_model));
|
|
|
|
extern HAMLIB_EXPORT(int) rot_open HAMLIB_PARAMS((ROT *rot));
|
|
|
|
extern HAMLIB_EXPORT(int) rot_close HAMLIB_PARAMS((ROT *rot));
|
|
|
|
extern HAMLIB_EXPORT(int) rot_cleanup HAMLIB_PARAMS((ROT *rot));
|
|
|
|
|
2001-12-28 20:30:58 +00:00
|
|
|
extern HAMLIB_EXPORT(int) rot_set_conf HAMLIB_PARAMS((ROT *rot, token_t token, const char *val));
|
|
|
|
extern HAMLIB_EXPORT(int) rot_get_conf HAMLIB_PARAMS((ROT *rot, token_t token, char *val));
|
2001-12-27 21:41:11 +00:00
|
|
|
/*
|
2001-12-28 20:30:58 +00:00
|
|
|
* General API commands, from most primitive to least.. )
|
2001-12-27 21:41:11 +00:00
|
|
|
* List Set/Get functions pairs
|
|
|
|
*/
|
|
|
|
extern HAMLIB_EXPORT(int) rot_set_position HAMLIB_PARAMS((ROT *rot, azimuth_t azimuth, elevation_t elevation));
|
|
|
|
extern HAMLIB_EXPORT(int) rot_get_position HAMLIB_PARAMS((ROT *rot, azimuth_t *azimuth, elevation_t *elevation));
|
2001-12-28 20:30:58 +00:00
|
|
|
extern HAMLIB_EXPORT(int) rot_stop HAMLIB_PARAMS((ROT *rot));
|
|
|
|
extern HAMLIB_EXPORT(int) rot_park HAMLIB_PARAMS((ROT *rot));
|
|
|
|
extern HAMLIB_EXPORT(int) rot_reset HAMLIB_PARAMS((ROT *rot, rot_reset_t reset));
|
2002-01-16 16:52:33 +00:00
|
|
|
extern HAMLIB_EXPORT(int) rot_move HAMLIB_PARAMS((ROT *rot, int direction, int speed));
|
2001-12-28 20:30:58 +00:00
|
|
|
extern HAMLIB_EXPORT(const char*) rot_get_info HAMLIB_PARAMS((ROT *rot));
|
|
|
|
|
2001-12-27 21:41:11 +00:00
|
|
|
extern HAMLIB_EXPORT(int) rot_register HAMLIB_PARAMS((const struct rot_caps *caps));
|
|
|
|
extern HAMLIB_EXPORT(int) rot_unregister HAMLIB_PARAMS((rot_model_t rot_model));
|
|
|
|
extern HAMLIB_EXPORT(int) rot_list_foreach HAMLIB_PARAMS((int (*cfunc)(const struct rot_caps*, rig_ptr_t), rig_ptr_t data));
|
|
|
|
extern HAMLIB_EXPORT(int) rot_load_backend HAMLIB_PARAMS((const char *be_name));
|
|
|
|
extern HAMLIB_EXPORT(int) rot_check_backend HAMLIB_PARAMS((rot_model_t rot_model));
|
2005-04-03 12:27:17 +00:00
|
|
|
extern HAMLIB_EXPORT(int) rot_load_all_backends HAMLIB_PARAMS((void));
|
2005-03-26 23:33:39 +00:00
|
|
|
extern HAMLIB_EXPORT(rot_model_t) rot_probe_all HAMLIB_PARAMS((hamlib_port_t *p));
|
2001-12-27 21:41:11 +00:00
|
|
|
|
2001-12-28 20:30:58 +00:00
|
|
|
extern HAMLIB_EXPORT(int) rot_token_foreach HAMLIB_PARAMS((ROT *rot, int (*cfunc)(const struct confparams *, rig_ptr_t), rig_ptr_t data));
|
|
|
|
extern HAMLIB_EXPORT(const struct confparams*) rot_confparam_lookup HAMLIB_PARAMS((ROT *rot, const char *name));
|
|
|
|
extern HAMLIB_EXPORT(token_t) rot_token_lookup HAMLIB_PARAMS((ROT *rot, const char *name));
|
|
|
|
|
2001-12-27 21:41:11 +00:00
|
|
|
extern HAMLIB_EXPORT(const struct rot_caps *) rot_get_caps HAMLIB_PARAMS((rot_model_t rot_model));
|
|
|
|
|
|
|
|
extern HAMLIB_EXPORT(int) qrb HAMLIB_PARAMS((double lon1, double lat1,
|
|
|
|
double lon2, double lat2,
|
2002-09-08 22:27:32 +00:00
|
|
|
double *distance, double *azimuth));
|
|
|
|
extern HAMLIB_EXPORT(double) distance_long_path HAMLIB_PARAMS((double distance));
|
2001-12-27 21:41:11 +00:00
|
|
|
extern HAMLIB_EXPORT(double) azimuth_long_path HAMLIB_PARAMS((double azimuth));
|
|
|
|
|
2003-08-21 20:22:06 +00:00
|
|
|
extern HAMLIB_EXPORT(int) longlat2locator HAMLIB_PARAMS((double longitude,
|
2008-05-01 12:19:57 +00:00
|
|
|
double latitude, char *locator_res, int pair_count));
|
2001-12-27 21:41:11 +00:00
|
|
|
extern HAMLIB_EXPORT(int) locator2longlat HAMLIB_PARAMS((double *longitude,
|
|
|
|
double *latitude, const char *locator));
|
|
|
|
|
2003-11-03 04:26:37 +00:00
|
|
|
extern HAMLIB_EXPORT(double) dms2dec HAMLIB_PARAMS((int degrees, int minutes,
|
|
|
|
double seconds, int sw));
|
|
|
|
extern HAMLIB_EXPORT(int) dec2dms HAMLIB_PARAMS((double dec, int *degrees,
|
|
|
|
int *minutes, double *seconds, int *sw));
|
2001-12-27 21:41:11 +00:00
|
|
|
|
2003-11-03 04:26:37 +00:00
|
|
|
extern HAMLIB_EXPORT(int) dec2dmmm HAMLIB_PARAMS((double dec, int *degrees,
|
|
|
|
double *minutes, int *sw));
|
|
|
|
extern HAMLIB_EXPORT(double) dmmm2dec HAMLIB_PARAMS((int degrees,
|
|
|
|
double minutes, int sw));
|
2001-12-27 21:41:11 +00:00
|
|
|
|
2002-11-09 13:09:02 +00:00
|
|
|
/*! \def rot_debug
|
|
|
|
* \brief Convenience definition for debug level.
|
|
|
|
*
|
|
|
|
* This is just as convenience definition of the rotator debug level,
|
|
|
|
* and is the same as for the rig debug level.
|
|
|
|
*
|
|
|
|
* \sa rig_debug
|
|
|
|
*/
|
2001-12-27 21:41:11 +00:00
|
|
|
#define rot_debug rig_debug
|
|
|
|
|
|
|
|
__END_DECLS
|
|
|
|
|
2001-12-28 20:30:58 +00:00
|
|
|
#endif /* _ROTATOR_H */
|
2001-12-27 21:41:11 +00:00
|
|
|
|
2006-10-15 00:27:52 +00:00
|
|
|
/** @} */
|