renamed ARS-RCI AZ&EL, and introduce new backend ARS-RCI azimuth-only

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2937 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.2.11
Stéphane Fillod, F8CFE 2010-05-31 21:15:58 +00:00
rodzic ee66381eb6
commit a6e646cfa8
3 zmienionych plików z 45 dodań i 7 usunięć

Wyświetl plik

@ -630,14 +630,17 @@ ars_get_position(ROT *rot, azimuth_t *az, elevation_t *el)
* ARS rotator capabilities. * ARS rotator capabilities.
*/ */
const struct rot_caps rci_se8_rot_caps = { /*
.rot_model = ROT_MODEL_RCI_SE8, * RCI/RCI-SE, with Elevation daugtherboard/unit.
.model_name = "ARS RCI-SE8", */
const struct rot_caps rci_azel_rot_caps = {
.rot_model = ROT_MODEL_RCI_AZEL,
.model_name = "ARS RCI AZ&EL",
.mfg_name = "EA4TX", .mfg_name = "EA4TX",
.version = "0.1", .version = "0.1",
.copyright = "LGPL", .copyright = "LGPL",
.status = RIG_STATUS_BETA, .status = RIG_STATUS_BETA,
.rot_type = ROT_TYPE_AZEL, .rot_type = ROT_TYPE_AZEL, /* AZ&EL units */
.port_type = RIG_PORT_PARALLEL, .port_type = RIG_PORT_PARALLEL,
.write_delay = 0, .write_delay = 0,
.post_write_delay = 10, .post_write_delay = 10,
@ -657,7 +660,39 @@ const struct rot_caps rci_se8_rot_caps = {
.get_position = ars_get_position, .get_position = ars_get_position,
.stop = ars_stop, .stop = ars_stop,
.move = ars_move, .move = ars_move,
};
/*
* RCI/RCI-SE, without Elevation daugtherboard/unit.
* Azimuth only
*/
const struct rot_caps rci_az_rot_caps = {
.rot_model = ROT_MODEL_RCI_AZ,
.model_name = "ARS RCI AZ",
.mfg_name = "EA4TX",
.version = "0.1",
.copyright = "LGPL",
.status = RIG_STATUS_BETA,
.rot_type = ROT_TYPE_AZIMUTH, /* AZ-only unit */
.port_type = RIG_PORT_PARALLEL,
.write_delay = 0,
.post_write_delay = 10,
.timeout = 0,
.retry = 3,
.min_az = 0,
.max_az = 360,
.min_el = 0,
.max_el = 180, /* TBC */
.rot_init = ars_init,
.rot_cleanup = ars_cleanup,
.rot_open = ars_open,
.rot_close = ars_close,
.set_position = ars_set_position,
.get_position = ars_get_position,
.stop = ars_stop,
.move = ars_move,
}; };
@ -667,7 +702,8 @@ DECLARE_INITROT_BACKEND(ars)
{ {
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__); rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
rot_register(&rci_se8_rot_caps); rot_register(&rci_az_rot_caps);
rot_register(&rci_azel_rot_caps);
return RIG_OK; return RIG_OK;
} }

Wyświetl plik

@ -38,6 +38,7 @@ struct ars_priv_data {
#endif #endif
}; };
extern const struct rot_caps rci_se8_rot_caps; extern const struct rot_caps rci_az_rot_caps;
extern const struct rot_caps rci_azel_rot_caps;
#endif /* _ROT_ARS_H */ #endif /* _ROT_ARS_H */

Wyświetl plik

@ -195,7 +195,8 @@
*/ */
#define ROT_ARS 11 #define ROT_ARS 11
#define ROT_BACKEND_ARS "ars" #define ROT_BACKEND_ARS "ars"
#define ROT_MODEL_RCI_SE8 ROT_MAKE_MODEL(ROT_ARS, 1) #define ROT_MODEL_RCI_AZEL ROT_MAKE_MODEL(ROT_ARS, 1)
#define ROT_MODEL_RCI_AZ ROT_MAKE_MODEL(ROT_ARS, 2)
/*! \typedef typedef int rot_model_t /*! \typedef typedef int rot_model_t
\brief Convenience type definition for rotator model. \brief Convenience type definition for rotator model.