{"action":"opened","issue":{"url":"https://api.github.com/repos/maddevsio/mad-location-manager/issues/12","repository_url":"https://api.github.com/repos/maddevsio/mad-location-manager","labels_url":"https://api.github.com/repos/maddevsio/mad-location-manager/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/maddevsio/mad-location-manager/issues/12/comments","events_url":"https://api.github.com/repos/maddevsio/mad-location-manager/issues/12/events","html_url":"https://github.com/maddevsio/mad-location-manager/issues/12","id":327450787,"number":12,"title":"Clarification on  orientation:","user":{"login":"arsab","id":38669282,"avatar_url":"https://avatars3.githubusercontent.com/u/38669282?v=4","gravatar_id":"","url":"https://api.github.com/users/arsab","html_url":"https://github.com/arsab","followers_url":"https://api.github.com/users/arsab/followers","following_url":"https://api.github.com/users/arsab/following{/other_user}","gists_url":"https://api.github.com/users/arsab/gists{/gist_id}","starred_url":"https://api.github.com/users/arsab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arsab/subscriptions","organizations_url":"https://api.github.com/users/arsab/orgs","repos_url":"https://api.github.com/users/arsab/repos","events_url":"https://api.github.com/users/arsab/events{/privacy}","received_events_url":"https://api.github.com/users/arsab/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-29T19:11:50Z","updated_at":"2018-05-29T19:11:50Z","closed_at":null,"author_association":"NONE","body":"Understanding is that \r\nX is in Longitude towards East\r\nY is in Latitude towards East\r\n\r\nReflected by expressions below:\r\ncan we confirm the expression here in file \"KalmanLocationService.java\"\r\n\r\n  xVel = speed * Math.cos(course);\r\n  yVel = speed * Math.sin(course);  \r\n\r\nTypically course being angle from North to East should we rather read/write ?\r\n\r\n   xVel = speed * Math.sin(course);\r\n   yVel = speed * Math.cos(course);\r\n\r\nwhat would be my misunderstanding?\r\n\r\nThanks.\r\n\r\n\r\n     x = loc.getLongitude(); \r\n     y = loc.getLatitude();\r\n\r\nm_kalmanFilter.update(\r\n                    sdi.getTimestamp(),\r\n                    Coordinates.longitudeToMeters(sdi.getGpsLon()),\r\n                    Coordinates.latitudeToMeters(sdi.getGpsLat()),\r\n                    xVel,\r\n                    yVel,\r\n                    sdi.getPosErr(),\r\n                    sdi.getVelErr()\r\n         );\r\n\r\nm_kalmanFilter.predict\r\n                 (sdi.getTimestamp(), \r\n                  sdi.getAbsEastAcc(), \r\n                  sdi.getAbsNorthAcc()\r\n                 );\r\n\r\nm_kalmanFilter = new GPSAccKalmanFilter(\r\n                    false, //todo move to settings\r\n                    Coordinates.longitudeToMeters(x),\r\n                    Coordinates.latitudeToMeters(y),\r\n                    xVel,\r\n                    yVel,\r\n                    m_settings.accelerationDeviation,\r\n                    posDev,\r\n                    timeStamp\r\n                   );\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"arsab"}}