Closed Murali-IsPagro closed 2 years ago
Ok, when you control a yawspeed, then you probably want to "close the loop" in your code, so then you control yaw by setting a yawspeed to reach it, basically a simple P controller.
Yes, I agree. But I am not giving any yaw deg/sec command in my code. But still I observe yaw. Is there any parameters I should change or it is natural for the drone to yaw slightly when VelocityBodyYawspeed() command is running without giving yaw (deg/sec)
It is natural that there will be drift, and you need to control that drift by "closing the loop", e.g. by writing a controller to do that.
Thank you.
Hi,
I am testing my drone using VelocityBody code, where I am taking off drone to certain height using VelocityBodyyawSpeed(0.0,0.0,-1.5,0.0) for 6 seconds and hovering for 20 seconds. But I observe drone is getting yaw .Before drone is getting armed the heading angle is 8.27 and once in air it is changing to 30+ degree.
Below I have attached the yaw data from the test.
This is the code: