{"action":"created","issue":{"url":"https://api.github.com/repos/KSP-KOS/KOS/issues/1014","labels_url":"https://api.github.com/repos/KSP-KOS/KOS/issues/1014/labels{/name}","comments_url":"https://api.github.com/repos/KSP-KOS/KOS/issues/1014/comments","events_url":"https://api.github.com/repos/KSP-KOS/KOS/issues/1014/events","html_url":"https://github.com/KSP-KOS/KOS/issues/1014","id":76209674,"number":1014,"title":"Raw controls for pitch and roll seem to be reversed.","user":{"login":"yump","id":2214413,"avatar_url":"https://avatars.githubusercontent.com/u/2214413?v=3","gravatar_id":"","url":"https://api.github.com/users/yump","html_url":"https://github.com/yump","followers_url":"https://api.github.com/users/yump/followers","following_url":"https://api.github.com/users/yump/following{/other_user}","gists_url":"https://api.github.com/users/yump/gists{/gist_id}","starred_url":"https://api.github.com/users/yump/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yump/subscriptions","organizations_url":"https://api.github.com/users/yump/orgs","repos_url":"https://api.github.com/users/yump/repos","events_url":"https://api.github.com/users/yump/events{/privacy}","received_events_url":"https://api.github.com/users/yump/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-05-14T03:10:15Z","updated_at":"2015-08-31T15:27:54Z","closed_at":null,"body":"This script tests the effects of applying positive yaw, pitch, and roll control inputs.  (It must, of course, be run in space.)\r\n\r\n    @lazyglobal off\r\n\r\n    function rot_att_rate {\r\n    \treturn -ship:facing * ship:angularvel.\r\n    }\r\n    \r\n    function zero_facing {\r\n    \tprint \"Aligning vessel with R(0,0,0)\".\r\n    \tset ship:control:neutralize to true.\r\n    \tlock steering to R(0,0,0).\r\n    \twait 8.\r\n    \tunlock steering.\r\n    \tsas on.  //SAS has better damping than lock steering.\r\n    \twait 2.\r\n    \tsas off.\r\n    \tlock steering to R(0,0,0).\r\n    \twait 5.\r\n    \tunlock steering.\r\n    }\r\n    \r\n    function test_control {\r\n    \tparameter rotvec.\r\n    \tprint \"Initial facing is \" + ship:facing.\r\n    \tprint \"initial attitude rate is \" + rot_att_rate().\r\n    \tprint \"applying ship:control:rotation \" + rotvec.\r\n    \tset ship:control:rotation to rotvec.\r\n    \twait 1.\r\n    \tprint \"After 1s, facing is \" + ship:facing.\r\n    \tprint \"After 1s, attitude rate is \" + rot_att_rate().\r\n    }\r\n    \r\n    zero_facing().\r\n    test_control(v(1,0,0)). //positive yaw\r\n    print \" \".\r\n    zero_facing().\r\n    test_control(v(0,1,0)). //positive pitch\r\n    print \" \".\r\n    zero_facing().\r\n    test_control(v(0,0,1)). //positive roll\r\n    print \" \".\r\n\r\nOutput looks like this:\r\n\r\n    Aligning vessel with R(0,0,0)\r\n    Initial facing is R(0.002,-0.005,359.994)\r\n    initial attitude rate is V(-0.000388246815418825, -0.000314757227897644, 0.000654640607535839)\r\n    applying ship:control:rotation V(1, 0, 0)\r\n    After 1s, facing is R(0,20.087,0.005)\r\n    After 1s, attitude rate is V(0.000647060398478061, 0.67379766702652, -0.000465724238893017)\r\n    \r\n    Aligning vessel with R(0,0,0)\r\n    Initial facing is R(0,0.017,0)\r\n    initial attitude rate is V(-0.000100604658655357, -0.000654641014989465, 0.000715939735528082)\r\n    applying ship:control:rotation V(0, 1, 0)\r\n    After 1s, facing is R(336.641,359.985,-0.004)\r\n    After 1s, attitude rate is V(-0.782880663871765, -0.000456628418760374, -0.00141100632026792)\r\n    \r\n    Aligning vessel with R(0,0,0)\r\n    Initial facing is R(0.009,-0.002,0.001)\r\n    initial attitude rate is V(-0.000648427463602275, -0.000137292488943785, 6.74702278047334E-06)\r\n    applying ship:control:rotation V(0, 0, 1)\r\n    After 1s, facing is R(359.983,359.991,299.838)\r\n    After 1s, attitude rate is V(0.00213213032111526, -0.00186076725367457, -2.01752686500549)\r\n\r\n\r\nObserve that a positive yaw input causes an increase in the ship:facing \"yaw\" angle, but positive pitch and roll inputs cause their respective angles to decrease.\r\n\r\nEdit: Presumably, the pilot pitch and roll controls are also reversed."},"comment":{"url":"https://api.github.com/repos/KSP-KOS/KOS/issues/comments/136405951","html_url":"https://github.com/KSP-KOS/KOS/issues/1014#issuecomment-136405951","issue_url":"https://api.github.com/repos/KSP-KOS/KOS/issues/1014","id":136405951,"user":{"login":"Dunbaratu","id":5216848,"avatar_url":"https://avatars.githubusercontent.com/u/5216848?v=3","gravatar_id":"","url":"https://api.github.com/users/Dunbaratu","html_url":"https://github.com/Dunbaratu","followers_url":"https://api.github.com/users/Dunbaratu/followers","following_url":"https://api.github.com/users/Dunbaratu/following{/other_user}","gists_url":"https://api.github.com/users/Dunbaratu/gists{/gist_id}","starred_url":"https://api.github.com/users/Dunbaratu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dunbaratu/subscriptions","organizations_url":"https://api.github.com/users/Dunbaratu/orgs","repos_url":"https://api.github.com/users/Dunbaratu/repos","events_url":"https://api.github.com/users/Dunbaratu/events{/privacy}","received_events_url":"https://api.github.com/users/Dunbaratu/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T15:27:54Z","updated_at":"2015-08-31T15:27:54Z","body":"@hvacengi Yes. This should be closed.\r\n"}}