Modification to backend library to suport azimuth positions to -180deg and associated translation. Used to support -1800>0->180 operation in GPredict of azimuth rotation on Yaesu rotators when physically installed with end-stops facing south.

pull/113/head
vk2ckp 2019-05-30 23:39:41 +10:00
rodzic 25736acd4b
commit 7e8e596c00
3 zmienionych plików z 17 dodań i 11 usunięć

Wyświetl plik

@ -137,7 +137,9 @@ gs232_rot_set_position(ROT *rot, azimuth_t az, elevation_t el)
unsigned u_az, u_el;
rig_debug(RIG_DEBUG_TRACE, "%s called: %f %f\n", __FUNCTION__, az, el);
if (az < 0.0){
az = az + 360.0;
}
u_az = (unsigned)rint(az);
u_el = (unsigned)rint(el);
@ -203,7 +205,7 @@ const struct rot_caps gs232_rot_caps = {
.rot_model = ROT_MODEL_GS232,
.model_name = "GS-232",
.mfg_name = "Yaesu/Kenpro",
.version = "0.1",
.version = "0.2",
.copyright = "LGPL",
.status = RIG_STATUS_BETA,
.rot_type = ROT_TYPE_AZEL,
@ -219,7 +221,7 @@ const struct rot_caps gs232_rot_caps = {
.timeout = 400,
.retry = 3,
.min_az = 0.0,
.min_az = -180.0,
.max_az = 450.0, /* vary according to rotator type */
.min_el = 0.0,
.max_el = 180.0,
@ -257,7 +259,7 @@ const struct rot_caps f1tetracker_rot_caps = {
.timeout = 400,
.retry = 0,
.min_az = 0.0,
.min_az = -180.0,
.max_az = 360.0, /* vary according to rotator type */
.min_el = 0.0,
.max_el = 180.0,

Wyświetl plik

@ -125,7 +125,9 @@ gs232a_rot_set_position(ROT *rot, azimuth_t az, elevation_t el)
unsigned u_az, u_el;
rig_debug(RIG_DEBUG_TRACE, "%s called: %f %f\n", __FUNCTION__, az, el);
if (az < 0.0) {
az = az + 360.0;
}
u_az = (unsigned)rint(az);
u_el = (unsigned)rint(el);
@ -240,7 +242,7 @@ const struct rot_caps gs232a_rot_caps = {
.rot_model = ROT_MODEL_GS232A,
.model_name = "GS-232A",
.mfg_name = "Yaesu",
.version = "0.3",
.version = "0.4",
.copyright = "LGPL",
.status = RIG_STATUS_BETA,
.rot_type = ROT_TYPE_OTHER,
@ -256,7 +258,7 @@ const struct rot_caps gs232a_rot_caps = {
.timeout = 400,
.retry = 3,
.min_az = 0.0,
.min_az = -180.0,
.max_az = 450.0, /* vary according to rotator type */
.min_el = 0.0,
.max_el = 180.0, /* requires G-5400B, G-5600B, G-5500, or G-500/G-550 */

Wyświetl plik

@ -128,7 +128,9 @@ gs232b_rot_set_position(ROT *rot, azimuth_t az, elevation_t el)
unsigned u_az, u_el;
rig_debug(RIG_DEBUG_TRACE, "%s called: %f %f\n", __FUNCTION__, az, el);
if (az < 0.0){
az = az + 360.0;
}
u_az = (unsigned)rint(az);
u_el = (unsigned)rint(el);
@ -242,12 +244,12 @@ const struct rot_caps gs232b_rot_caps = {
.rot_model = ROT_MODEL_GS232B,
.model_name = "GS-232B",
.mfg_name = "Yaesu",
.version = "0.2",
.version = "0.3",
.copyright = "LGPL",
.status = RIG_STATUS_BETA,
.rot_type = ROT_TYPE_OTHER,
.port_type = RIG_PORT_SERIAL,
.serial_rate_min = 150,
.serial_rate_min = 1200,
.serial_rate_max = 9600,
.serial_data_bits = 8,
.serial_stop_bits = 1,
@ -258,7 +260,7 @@ const struct rot_caps gs232b_rot_caps = {
.timeout = 400,
.retry = 3,
.min_az = 0.0,
.min_az = -180.0,
.max_az = 450.0, /* vary according to rotator type */
.min_el = 0.0,
.max_el = 180.0, /* requires G-5400B, G-5600B, G-5500, or G-500/G-550 */