Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
linux rotor: add more debug info to the USALS routine
  • Loading branch information
perexg committed Dec 12, 2014
1 parent 19dbe37 commit 39d985b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/input/mpegts/linuxdvb/linuxdvb_rotor.c
Expand Up @@ -46,7 +46,6 @@ typedef struct linuxdvb_rotor

/* GOTOX */
uint32_t lr_position;

uint32_t lr_rate;

} linuxdvb_rotor_t;
Expand Down Expand Up @@ -271,6 +270,12 @@ linuxdvb_rotor_usals_tune

int angle_1 = (((motor_angle > 0.0) ? 0xd0 : 0xe0) | (sixteenths >> 8));
int angle_2 = (sixteenths & 0xff);

tvhtrace("diseqc", "rotor USALS site lat %0.4f%c site lon %0.4f%c sat lon %0.1f%c zero %0.1f%c",
fabs(lr->lr_site_lat), (lr->lr_site_lat > 0.0) ? 'N' : 'S',
fabs(lr->lr_site_lon), (lr->lr_site_lon > 0.0) ? 'E' : 'W',
fabs(lr->lr_sat_lon), (lr->lr_sat_lon > 0.0) ? 'E' : 'w',
fabs(lr->lr_zero_lon), (lr->lr_zero_lon > 0.0) ? 'E' : 'W');

if (linuxdvb_rotor_check_orbital_pos(lm, ls))
return 0;
Expand Down

0 comments on commit 39d985b

Please sign in to comment.