{"action":"closed","issue":{"url":"https://api.github.com/repos/autosportlabs/RaceCapture-Pro_firmware/issues/939","repository_url":"https://api.github.com/repos/autosportlabs/RaceCapture-Pro_firmware","labels_url":"https://api.github.com/repos/autosportlabs/RaceCapture-Pro_firmware/issues/939/labels{/name}","comments_url":"https://api.github.com/repos/autosportlabs/RaceCapture-Pro_firmware/issues/939/comments","events_url":"https://api.github.com/repos/autosportlabs/RaceCapture-Pro_firmware/issues/939/events","html_url":"https://github.com/autosportlabs/RaceCapture-Pro_firmware/issues/939","id":240793605,"number":939,"title":"Expose current direct CAN mapping value in Lua","user":{"login":"brentpicasso","id":3267533,"avatar_url":"https://avatars1.githubusercontent.com/u/3267533?v=4","gravatar_id":"","url":"https://api.github.com/users/brentpicasso","html_url":"https://github.com/brentpicasso","followers_url":"https://api.github.com/users/brentpicasso/followers","following_url":"https://api.github.com/users/brentpicasso/following{/other_user}","gists_url":"https://api.github.com/users/brentpicasso/gists{/gist_id}","starred_url":"https://api.github.com/users/brentpicasso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brentpicasso/subscriptions","organizations_url":"https://api.github.com/users/brentpicasso/orgs","repos_url":"https://api.github.com/users/brentpicasso/repos","events_url":"https://api.github.com/users/brentpicasso/events{/privacy}","received_events_url":"https://api.github.com/users/brentpicasso/received_events","type":"User","site_admin":false},"labels":[{"id":590133810,"url":"https://api.github.com/repos/autosportlabs/RaceCapture-Pro_firmware/labels/CAN%20mapping","name":"CAN mapping","color":"1d76db","default":false},{"id":39715716,"url":"https://api.github.com/repos/autosportlabs/RaceCapture-Pro_firmware/labels/Enhancement","name":"Enhancement","color":"84b6eb","default":false},{"id":623967189,"url":"https://api.github.com/repos/autosportlabs/RaceCapture-Pro_firmware/labels/Lua","name":"Lua","color":"1d76db","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/autosportlabs/RaceCapture-Pro_firmware/milestones/18","html_url":"https://github.com/autosportlabs/RaceCapture-Pro_firmware/milestone/18","labels_url":"https://api.github.com/repos/autosportlabs/RaceCapture-Pro_firmware/milestones/18/labels","id":2611185,"number":18,"title":"2.13.0","description":null,"creator":{"login":"brentpicasso","id":3267533,"avatar_url":"https://avatars1.githubusercontent.com/u/3267533?v=4","gravatar_id":"","url":"https://api.github.com/users/brentpicasso","html_url":"https://github.com/brentpicasso","followers_url":"https://api.github.com/users/brentpicasso/followers","following_url":"https://api.github.com/users/brentpicasso/following{/other_user}","gists_url":"https://api.github.com/users/brentpicasso/gists{/gist_id}","starred_url":"https://api.github.com/users/brentpicasso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brentpicasso/subscriptions","organizations_url":"https://api.github.com/users/brentpicasso/orgs","repos_url":"https://api.github.com/users/brentpicasso/repos","events_url":"https://api.github.com/users/brentpicasso/events{/privacy}","received_events_url":"https://api.github.com/users/brentpicasso/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":3,"state":"open","created_at":"2017-06-29T01:48:43Z","updated_at":"2017-10-10T14:08:02Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2017-07-05T22:26:06Z","updated_at":"2017-10-10T14:08:02Z","closed_at":"2017-10-10T14:08:02Z","author_association":"CONTRIBUTOR","body":"Similar to readOBD2() in lua, we need a function that exposes the current value for a direct CAN mapping. \r\n\r\nThere's no convenient unique ID like we have for readOBD2(), since you can extract multiple values from the same CAN message. \r\n\r\nSome ideas:\r\n\r\n* We can do it based on CAN mapping index, but that's pretty fragile and will break the script if the ordering of the CAN mapping changes. \r\n* We can key it off of the combination of CAN ID / offset / length since those are typically unique, but that would be a bit cumbersome. \r\n* We can query based on the actual channel name, which would make it work for any channel. This is likely the best option, but it would require an efficient / hashed lookup if requesting by name. \r\n"}}
{"actor":{"display_login":"brentpicasso"}}