kopia lustrzana https://github.com/rs1729/RS
fix typo in NMEA conversion
rodzic
b6a1defb0a
commit
65ef2de4d0
|
@ -114,7 +114,7 @@ while ($line = <$fpi>) {
|
|||
|
||||
$hms = $1*10000+$2*100+$3;
|
||||
|
||||
if ($4 < 0) { $NS="S"; $sign *= -1; }
|
||||
if ($4 < 0) { $NS="S"; $sign = -1; }
|
||||
else { $NS="N"; $sign = 1}
|
||||
$lat = $sign*$4*100+$5*60;
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ while ($line = <$fpi>) {
|
|||
|
||||
$hms = $1*10000+$2*100+$3;
|
||||
|
||||
if ($4 < 0) { $NS="S"; $sign *= -1; }
|
||||
if ($4 < 0) { $NS="S"; $sign = -1; }
|
||||
else { $NS="N"; $sign = 1}
|
||||
$lat = $sign*$4*100+$5*60;
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue