{"action":"created","issue":{"url":"https://api.github.com/repos/c172p-team/c172p-detailed/issues/856","repository_url":"https://api.github.com/repos/c172p-team/c172p-detailed","labels_url":"https://api.github.com/repos/c172p-team/c172p-detailed/issues/856/labels{/name}","comments_url":"https://api.github.com/repos/c172p-team/c172p-detailed/issues/856/comments","events_url":"https://api.github.com/repos/c172p-team/c172p-detailed/issues/856/events","html_url":"https://github.com/c172p-team/c172p-detailed/issues/856","id":188122806,"number":856,"title":"State support in the C172P","user":{"login":"gilbertohasnofb","id":5700795,"avatar_url":"https://avatars.githubusercontent.com/u/5700795?v=3","gravatar_id":"","url":"https://api.github.com/users/gilbertohasnofb","html_url":"https://github.com/gilbertohasnofb","followers_url":"https://api.github.com/users/gilbertohasnofb/followers","following_url":"https://api.github.com/users/gilbertohasnofb/following{/other_user}","gists_url":"https://api.github.com/users/gilbertohasnofb/gists{/gist_id}","starred_url":"https://api.github.com/users/gilbertohasnofb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gilbertohasnofb/subscriptions","organizations_url":"https://api.github.com/users/gilbertohasnofb/orgs","repos_url":"https://api.github.com/users/gilbertohasnofb/repos","events_url":"https://api.github.com/users/gilbertohasnofb/events{/privacy}","received_events_url":"https://api.github.com/users/gilbertohasnofb/received_events","type":"User","site_admin":false},"labels":[{"id":185782311,"url":"https://api.github.com/repos/c172p-team/c172p-detailed/labels/help%20wanted","name":"help wanted","color":"159818","default":true},{"id":213640322,"url":"https://api.github.com/repos/c172p-team/c172p-detailed/labels/high%20priority","name":"high priority","color":"ff1c02","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-11-08T22:35:22Z","updated_at":"2016-12-04T05:50:20Z","closed_at":null,"body":"State support for our plane is being discussed in the mailing list: https://sourceforge.net/p/flightgear/mailman/message/35478527/\r\n\r\n@onox @wlbragg or whomever is comfortable with the subject, could you please check this thread out?"},"comment":{"url":"https://api.github.com/repos/c172p-team/c172p-detailed/issues/comments/264686070","html_url":"https://github.com/c172p-team/c172p-detailed/issues/856#issuecomment-264686070","issue_url":"https://api.github.com/repos/c172p-team/c172p-detailed/issues/856","id":264686070,"user":{"login":"wlbragg","id":11069680,"avatar_url":"https://avatars.githubusercontent.com/u/11069680?v=3","gravatar_id":"","url":"https://api.github.com/users/wlbragg","html_url":"https://github.com/wlbragg","followers_url":"https://api.github.com/users/wlbragg/followers","following_url":"https://api.github.com/users/wlbragg/following{/other_user}","gists_url":"https://api.github.com/users/wlbragg/gists{/gist_id}","starred_url":"https://api.github.com/users/wlbragg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wlbragg/subscriptions","organizations_url":"https://api.github.com/users/wlbragg/orgs","repos_url":"https://api.github.com/users/wlbragg/repos","events_url":"https://api.github.com/users/wlbragg/events{/privacy}","received_events_url":"https://api.github.com/users/wlbragg/received_events","type":"User","site_admin":false},"created_at":"2016-12-04T05:50:19Z","updated_at":"2016-12-04T05:50:19Z","body":"@zakalawe,  looking at the examples in state I need some clarification to proceed.\r\nIn approach-overlay.xml you have\r\n\r\n~~~xml\r\n<name type=\"string\" n=\"0\">approach</name>\r\n<name type=\"string\" n=\"1\">circuit</name>\r\n~~~\r\nyet in cruise-overlay.xml you have\r\n~~~xml\r\n<name type=\"string\" n=\"0\">cruise</name>\r\n<name type=\"string\" n=\"1\">climb</name>\r\n~~~\r\nWere these two independent examples that you happed to throw in there for reference? I don't get the correlation between the two unless it is really supposed to be\r\n~~~xml\r\n<name type=\"string\" n=\"0\">approach</name>\r\n<name type=\"string\" n=\"1\">circuit</name>\r\n<name type=\"string\" n=\"2\">cruise</name>\r\n<name type=\"string\" n=\"3\">climb</name>\r\n~~~\r\nin each configuration file?\r\n\r\nIn the <overlay> section I assume all the examples are supposed to represent properties in the FDM that need to be initialized for that state.\r\n\r\nie:\r\n~~~xml\r\n<overlay>\r\n        <foo type=\"int\">42</foo>\r\n    </overlay>\r\n~~~\r\nand\r\n~~~xml\r\n<overlay>\r\n        <wibble type=\"bool\">true</wibble>\r\n        <sim>\r\n            <dimensions>\r\n                <radius-m type=\"double\">10</radius-m>\r\n            </dimensions>\r\n        </sim>\r\n    </overlay>\r\n~~~\r\nall represent various existing properties we need to set for each state?\r\nWhere you are using\r\nfoo\r\nwibbly\r\n/sim/dimensions/radius-m \r\nall as examples of properties that might need to be initialized for that startup state?\r\n\r\nI started adding some of the properties needed to startup in air on approach. My first goal is  to see that the code in the state files is being read and executed.\r\n\r\nIs there any documentation on how to code and activate this?\r\n\r\nI assumed --state=0 in the launcher or cmdline would activate the first named state?\r\n"}}
{"actor":{"display_login":"wlbragg"}}