{"action":"created","issue":{"url":"https://api.github.com/repos/swift-nav/piksi_firmware/issues/505","labels_url":"https://api.github.com/repos/swift-nav/piksi_firmware/issues/505/labels{/name}","comments_url":"https://api.github.com/repos/swift-nav/piksi_firmware/issues/505/comments","events_url":"https://api.github.com/repos/swift-nav/piksi_firmware/issues/505/events","html_url":"https://github.com/swift-nav/piksi_firmware/issues/505","id":95571065,"number":505,"title":"Message to indicate loss of RTK lock","user":{"login":"henryhallam","id":438334,"avatar_url":"https://avatars.githubusercontent.com/u/438334?v=3","gravatar_id":"","url":"https://api.github.com/users/henryhallam","html_url":"https://github.com/henryhallam","followers_url":"https://api.github.com/users/henryhallam/followers","following_url":"https://api.github.com/users/henryhallam/following{/other_user}","gists_url":"https://api.github.com/users/henryhallam/gists{/gist_id}","starred_url":"https://api.github.com/users/henryhallam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henryhallam/subscriptions","organizations_url":"https://api.github.com/users/henryhallam/orgs","repos_url":"https://api.github.com/users/henryhallam/repos","events_url":"https://api.github.com/users/henryhallam/events{/privacy}","received_events_url":"https://api.github.com/users/henryhallam/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/swift-nav/piksi_firmware/labels/new%20feature","name":"new feature","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-17T02:29:43Z","updated_at":"2015-11-16T20:20:00Z","closed_at":null,"body":"[User request:](https://groups.google.com/forum/#!topic/swiftnav-discuss/9hsdPYTChmQ)\r\n\r\n> I'm finding it problematic for the Piksi to always be reporting single-point precision even when the unit is in one of the RTK modes.\r\nIt makes it really difficult to know when it's lost RTK because you can't simply look at a transition of the flags.\r\n\r\n> Picture this: You've got a UAV that has both a Piksi and a uBlox.\r\nYou're flying along in RTK Fixed mode.  Okay, great, you look at the flag and know that the coordinate is high precision so the autopilot uses it.\r\nThen suddenly, for whatever reason, the Piksi stops outputting RTK altogether and you're left with SPP.  Sadly, the Piksi's SPP solutions aren't nearly as good as a uBlox so you'd like to be able to quickly switch to using coordinates that you get from a uBlox.  How do you know when to do this?  Currently, the only way would be some sort of timeout.  That's not a great solution.\r\n\r\nWe could define a new message type, e.g. MSG_RTK_NO_FIX, and transmit it in solution_thread() if RTK is unavailable for any reason (e.g. not enough sats in common, DOP too high, base obs too old, some kind of solution error).\r\n\r\nShould this be in a new message mask group?"},"comment":{"url":"https://api.github.com/repos/swift-nav/piksi_firmware/issues/comments/157157906","html_url":"https://github.com/swift-nav/piksi_firmware/issues/505#issuecomment-157157906","issue_url":"https://api.github.com/repos/swift-nav/piksi_firmware/issues/505","id":157157906,"user":{"login":"denniszollo","id":11276774,"avatar_url":"https://avatars.githubusercontent.com/u/11276774?v=3","gravatar_id":"","url":"https://api.github.com/users/denniszollo","html_url":"https://github.com/denniszollo","followers_url":"https://api.github.com/users/denniszollo/followers","following_url":"https://api.github.com/users/denniszollo/following{/other_user}","gists_url":"https://api.github.com/users/denniszollo/gists{/gist_id}","starred_url":"https://api.github.com/users/denniszollo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denniszollo/subscriptions","organizations_url":"https://api.github.com/users/denniszollo/orgs","repos_url":"https://api.github.com/users/denniszollo/repos","events_url":"https://api.github.com/users/denniszollo/events{/privacy}","received_events_url":"https://api.github.com/users/denniszollo/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T20:20:00Z","updated_at":"2015-11-16T20:20:00Z","body":"I'd like to resurface this issue for discussion.  \r\n\r\nWhat would we think about continuing to output baseline messages, but indicating in the FLAGS field that we were unable to produce a solution and maybe setting the data fields to MAX_INT or something.  When there is No RTK solution, the behavior could be:\r\n - SPP solution (LLH, ECEF) comes back if in psuedo-absolute mode\r\n - baseline message (NED, ECEF)  still comes at the expected interval but the flags field says it couldn't be computed and why.  The data values are hosed to a degree that any reasonable user would have to notice that they are invalid."}}