{"action":"opened","issue":{"url":"https://api.github.com/repos/afconsult-south/dragonfly-fcb/issues/133","labels_url":"https://api.github.com/repos/afconsult-south/dragonfly-fcb/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/afconsult-south/dragonfly-fcb/issues/133/comments","events_url":"https://api.github.com/repos/afconsult-south/dragonfly-fcb/issues/133/events","html_url":"https://github.com/afconsult-south/dragonfly-fcb/issues/133","id":110280246,"number":133,"title":"Multiple state sampling tasks can be created/started","user":{"login":"DanielStenis","id":10434691,"avatar_url":"https://avatars.githubusercontent.com/u/10434691?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielStenis","html_url":"https://github.com/DanielStenis","followers_url":"https://api.github.com/users/DanielStenis/followers","following_url":"https://api.github.com/users/DanielStenis/following{/other_user}","gists_url":"https://api.github.com/users/DanielStenis/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielStenis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielStenis/subscriptions","organizations_url":"https://api.github.com/users/DanielStenis/orgs","repos_url":"https://api.github.com/users/DanielStenis/repos","events_url":"https://api.github.com/users/DanielStenis/events{/privacy}","received_events_url":"https://api.github.com/users/DanielStenis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/afconsult-south/dragonfly-fcb/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/afconsult-south/dragonfly-fcb/labels/RTOS","name":"RTOS","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/afconsult-south/dragonfly-fcb/milestones/3","html_url":"https://github.com/afconsult-south/dragonfly-fcb/milestones/Real-time%20operating%20system","labels_url":"https://api.github.com/repos/afconsult-south/dragonfly-fcb/milestones/3/labels","id":1075944,"number":3,"title":"Real-time operating system","description":"Make use of an RTOS (FreeRTOS) to:\r\n- Create threads for control update, sensor sampling etc.\r\n- Use mutex/semaphores for shared resources and variables","creator":{"login":"DanielStenis","id":10434691,"avatar_url":"https://avatars.githubusercontent.com/u/10434691?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielStenis","html_url":"https://github.com/DanielStenis","followers_url":"https://api.github.com/users/DanielStenis/followers","following_url":"https://api.github.com/users/DanielStenis/following{/other_user}","gists_url":"https://api.github.com/users/DanielStenis/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielStenis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielStenis/subscriptions","organizations_url":"https://api.github.com/users/DanielStenis/orgs","repos_url":"https://api.github.com/users/DanielStenis/repos","events_url":"https://api.github.com/users/DanielStenis/events{/privacy}","received_events_url":"https://api.github.com/users/DanielStenis/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":7,"state":"open","created_at":"2015-04-20T19:47:24Z","updated_at":"2015-10-07T17:47:31Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-10-07T17:47:31Z","updated_at":"2015-10-07T17:47:31Z","closed_at":null,"body":"When calling the function StartStateSamplingTask(), several tasks can be started. This should not be possible. A check should be made to see if a task is already running and if so just update the sampleTime and sampleDuration.\r\n\r\nCheck so that this does not occur elsewhere in the code while at it :)"}}