{"action":"opened","issue":{"url":"https://api.github.com/repos/hessu/perl-aprs-fap/issues/2","repository_url":"https://api.github.com/repos/hessu/perl-aprs-fap","labels_url":"https://api.github.com/repos/hessu/perl-aprs-fap/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/hessu/perl-aprs-fap/issues/2/comments","events_url":"https://api.github.com/repos/hessu/perl-aprs-fap/issues/2/events","html_url":"https://github.com/hessu/perl-aprs-fap/issues/2","id":188993663,"number":2,"title":"Sending negative decimal GPS coordinates","user":{"login":"ajkirby","id":12192696,"avatar_url":"https://avatars.githubusercontent.com/u/12192696?v=3","gravatar_id":"","url":"https://api.github.com/users/ajkirby","html_url":"https://github.com/ajkirby","followers_url":"https://api.github.com/users/ajkirby/followers","following_url":"https://api.github.com/users/ajkirby/following{/other_user}","gists_url":"https://api.github.com/users/ajkirby/gists{/gist_id}","starred_url":"https://api.github.com/users/ajkirby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajkirby/subscriptions","organizations_url":"https://api.github.com/users/ajkirby/orgs","repos_url":"https://api.github.com/users/ajkirby/repos","events_url":"https://api.github.com/users/ajkirby/events{/privacy}","received_events_url":"https://api.github.com/users/ajkirby/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-13T20:44:08Z","updated_at":"2016-11-13T20:44:08Z","closed_at":null,"body":"I'm having issues sending GPS data captured from DMR digital radios to FAP.pm\r\n\r\nIf the latitude value is a minus number I get undef back from FAP.\r\n\r\n 51.8810034 -359.437142 causes undef\r\n\r\n51.941111 0.633388 works\r\n\r\nHere's the code I'm using:\r\n\r\n    foreach my $ent (@upd_q) {\r\n        my $aprs_position = Ham::APRS::FAP::make_position(\r\n            $ent->{'latitude'},\r\n            $ent->{'longitude'},\r\n            -1, # speed\r\n            -1, # course\r\n            -10000, # altitude\r\n            (defined $ent->{'symbol'}) ? $ent->{'symbol'} : '/[', # symbol\r\n            1, # compression\r\n            0); # no ambiguity\r\n        #print \"$aprs_position\\n\";\r\n\r\n        my $packet = sprintf('%s>APTR01:!%s', $ent->{'callsign'}, $aprs_position);\r\n        #print \"$packet\\n\";\r\n\r\n\tif ($aprs_enable == 1){\r\n            my $ok = $is->sendline($packet);\r\n            if (!$ok) {\r\n                $is->disconnect();\r\n            }\r\n\t}\r\n    }\r\n\r\nI realise this is likely a problem with the above code and not FAP but I'm struggling to debug this so any help would be great.\r\n"}}
{"actor":{"display_login":"ajkirby"}}