]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
linux rotor: add more debug info to the USALS routine
authorJaroslav Kysela <perex@perex.cz>
Fri, 12 Dec 2014 22:03:34 +0000 (23:03 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 12 Dec 2014 22:03:34 +0000 (23:03 +0100)
src/input/mpegts/linuxdvb/linuxdvb_rotor.c

index 6f5bcbc033e6f6d919fed9b616cf51e1282268e7..a3def4bf216ef183dc52664374e378820453993b 100644 (file)
@@ -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;