Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
linuxdvb rotor: fix USALS formula (removed debug code)
  • Loading branch information
perexg committed Dec 14, 2014
1 parent 27e3b34 commit 388f57e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/input/mpegts/linuxdvb/linuxdvb_rotor.c
Expand Up @@ -314,12 +314,6 @@ usals_sat_angle( double site_lat, double site_lon,
if (azimuth < 90)
value = 180 - value;

if (value < 180) {
return round(fabs(180 - value) * 10.0);
} else {
return -round(fabs(180 - value) * 10.0);
}

return value;
}

Expand Down Expand Up @@ -366,7 +360,7 @@ linuxdvb_rotor_usals_tune

tvhtrace("diseqc", "rotor USALS goto %0.1f%c (motor %0.1f %sclockwise)",
fabs(lr->lr_sat_lon), (lr->lr_sat_lon > 0.0) ? 'E' : 'W',
((double)tmp / 10.0), (cmd & 0xE000) == 0xE000 ? "counter-" : "");
((double)tmp / 10.0), (cmd & 0xF000) == 0xD000 ? "counter-" : "");

for (i = 0; i <= ls->lse_parent->ls_diseqc_repeats; i++) {
if (linuxdvb_diseqc_send(fd, 0xE0, 0x31, 0x6E, 2,
Expand Down

0 comments on commit 388f57e

Please sign in to comment.