{"action":"closed","issue":{"url":"https://api.github.com/repos/dji-sdk/Mobile-SDK-Android/issues/276","repository_url":"https://api.github.com/repos/dji-sdk/Mobile-SDK-Android","labels_url":"https://api.github.com/repos/dji-sdk/Mobile-SDK-Android/issues/276/labels{/name}","comments_url":"https://api.github.com/repos/dji-sdk/Mobile-SDK-Android/issues/276/comments","events_url":"https://api.github.com/repos/dji-sdk/Mobile-SDK-Android/issues/276/events","html_url":"https://github.com/dji-sdk/Mobile-SDK-Android/issues/276","id":316103257,"node_id":"MDU6SXNzdWUzMTYxMDMyNTc=","number":276,"title":"Stick throws not reversing when using Custom Gimbal Mapping","user":{"login":"jmoore3274","id":37406825,"node_id":"MDQ6VXNlcjM3NDA2ODI1","avatar_url":"https://avatars2.githubusercontent.com/u/37406825?v=4","gravatar_id":"","url":"https://api.github.com/users/jmoore3274","html_url":"https://github.com/jmoore3274","followers_url":"https://api.github.com/users/jmoore3274/followers","following_url":"https://api.github.com/users/jmoore3274/following{/other_user}","gists_url":"https://api.github.com/users/jmoore3274/gists{/gist_id}","starred_url":"https://api.github.com/users/jmoore3274/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmoore3274/subscriptions","organizations_url":"https://api.github.com/users/jmoore3274/orgs","repos_url":"https://api.github.com/users/jmoore3274/repos","events_url":"https://api.github.com/users/jmoore3274/events{/privacy}","received_events_url":"https://api.github.com/users/jmoore3274/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-20T02:20:27Z","updated_at":"2018-12-13T05:38:40Z","closed_at":"2018-12-13T05:38:40Z","author_association":"NONE","body":"\r\n**-  Description of the issue.**\r\n \r\n       When trying to set custom gimbal stick mapping the controls will not reverse when using \r\n       isReversed. However I do have normal movement direction as if the style was set to default.\r\n       I do have toast messages displaying text to let me know the code executed correctly.\r\n            \r\n**-  Steps to reproduce the bug or crash issues(It would be great if you can provide this)**\r\n      \r\n      Make a new instance of the GimbalMapping object and set properties. Call the \r\n       setGimbalMappingStyle method and set it to CUSTOM. Call the setCustomGimbalMapping method \r\n       and pass it the new GimbalMapping object then give it a new common call back. I'm not entirely \r\n       sure this is a bug or if I'm just not calling the isReversed correctly. My code is below.\r\n\r\n      `if(app.getInvertVideoSwitchState()== true) {\r\n\r\n            final GimbalMapping newCustomGimbalMapping = new GimbalMapping();\r\n            newCustomGimbalMapping.leftHorizontal.isReversed();\r\n            newCustomGimbalMapping.rightVertical.isReversed();\r\n\r\n            mVideoSurface.setRotation(180.0f);\r\n            ((Aircraft)FPVApplication.getProductInstance()).getRemoteController().setGimbalMappingStyle(GimbalMappingStyle.CUSTOM, new CommonCallbacks.CompletionCallback() {\r\n                @Override\r\n                public void onResult(DJIError djiError) {\r\n\r\n                }\r\n            });\r\n            ((Aircraft)FPVApplication.getProductInstance()).getRemoteController().setCustomGimbalMapping(newCustomGimbalMapping, new CommonCallbacks.CompletionCallback() {\r\n                @Override\r\n                public void onResult(DJIError djiError) {\r\n\r\n                    showToast(\"Custom Mapping Set\");\r\n\r\n                }\r\n            });\r\n\r\n        }else{\r\n\r\n            mVideoSurface.setRotation(0.0f);\r\n            ((Aircraft)FPVApplication.getProductInstance()).getRemoteController().setGimbalMappingStyle(GimbalMappingStyle.DEFAULT, new CommonCallbacks.CompletionCallback() {\r\n                @Override\r\n                public void onResult(DJIError djiError) {\r\n\r\n                    showToast(\"Default Mapping Set\");\r\n\r\n                }\r\n            });\r\n        }`\r\n\r\n\r\n**-  Crash logs (If you can find it, it would be very helpful)**\r\n\r\n      APP is not crashing\r\n\r\n**-  DJI Android SDK version you are using (Like Android SDK 3.4, etc)**\r\n   \r\n     Android Mobile 4.5 and Android UX 4.5\r\n\r\n**-  DJI Product you are using (Like Phantom 4, Mavic Pro, etc)**\r\n\r\n      DJI Inspire 1 and the DJI A3 with LB2. Both of these systems mount the following cameras that all \r\n     exhibit the same behavior. X3,Z3, XT640 Advanced Radiometry\r\n\r\n**-  Android system version you are using (Like Android 6.0.1, Android 5.1.1, etc)**\r\n    \r\n     Android 7.0 on Samsung Galaxy S2 Tablet\r\n     Android 7.1.1 on Samsung Galaxy Note 8\r\n\r\n**-  Android device you are using (Like Samsung Galaxy Note 5, Nexus 5, etc)**\r\n\r\n     Samsung Galaxy S2 Tablet and the Samsung Note 8    \r\n\r\n**-  Android Studio version you are using (Like Android Studio 2.2, etc)**\r\n\r\n      Android Studio 3.0.1\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"Michael-DJI"}}