Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
linuxdvb rotor: USALS addr zero longtitute
  • Loading branch information
perexg committed Dec 2, 2014
1 parent 6967a9a commit 1b193a3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/input/mpegts/linuxdvb/linuxdvb_rotor.c
Expand Up @@ -42,6 +42,7 @@ typedef struct linuxdvb_rotor
double lr_site_lat;
double lr_site_lon;
double lr_sat_lon;
double lr_zero_lon;

/* GOTOX */
uint32_t lr_position;
Expand Down Expand Up @@ -86,6 +87,12 @@ const idclass_t linuxdvb_rotor_gotox_class =
.name = "Satellite Longitude",
.off = offsetof(linuxdvb_rotor_t, lr_sat_lon),
},
{
.type = PT_DBL,
.id = "zero_lon",
.name = "Zero Sat Longitude",
.off = offsetof(linuxdvb_rotor_t, lr_zero_lon),
},
{
.type = PT_U16,
.id = "rate",
Expand Down Expand Up @@ -236,7 +243,7 @@ linuxdvb_rotor_usals_tune

double lat = TO_RAD(lr->lr_site_lat);
double lon = TO_RAD(lr->lr_site_lon);
double pos = TO_RAD(lr->lr_sat_lon);
double pos = TO_RAD(lr->lr_sat_lon - lr->lr_zero_lon);

double dishVector[3] = {
(r_eq * cos(lat)),
Expand Down

0 comments on commit 1b193a3

Please sign in to comment.