From 39d985be1c102123c6f5b4c6fb0be72517d29db3 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Fri, 12 Dec 2014 23:03:34 +0100 Subject: [PATCH] linux rotor: add more debug info to the USALS routine --- src/input/mpegts/linuxdvb/linuxdvb_rotor.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/input/mpegts/linuxdvb/linuxdvb_rotor.c b/src/input/mpegts/linuxdvb/linuxdvb_rotor.c index 6f5bcbc0..a3def4bf 100644 --- a/src/input/mpegts/linuxdvb/linuxdvb_rotor.c +++ b/src/input/mpegts/linuxdvb/linuxdvb_rotor.c @@ -46,7 +46,6 @@ typedef struct linuxdvb_rotor /* GOTOX */ uint32_t lr_position; - uint32_t lr_rate; } linuxdvb_rotor_t; @@ -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;