How can I change yaw degree with Dronecode SDK for turn over?
Are you using offboard control or missions?
For simple goto functionality you could also try out this new pull request: https://github.com/Dronecode/DronecodeSDK/pull/485. It includes yaw control.
I am using Pixhawk 2.1 at indoor. I have maxbotix range finder and PX4Flow 2.3. I want to fly up to 6 meters then take pictures of the places around the drone. I am new and I don't know offboard control yet.
Ok, I suggest you have a look at the offboard plugin and play with it in simulation first.https://sdk.dronecode.org/en/api_reference/classdronecode__sdk_1_1_offboard.html
Thanks you for reply, Which simulation do you prefer ?
I mostly use SITL jMAVSim for quick checks but sometimes I also make use of the SITL Gazebo simulation, and HITL as well.
I try it offboard control on Gazebo, it is working very good. If I want to use range finder for altitude, Can I do settings via DronecodeSDK?
I don't know how to use the range finder I'm afraid. And the SDK doesn't have specific settings for it. I suggest you check the PX4 Firmware docs and parameters.