Stabilize hover in drone
Hello everyone. I'm using an AR.Drone 2.0 and, when I was using it in ROS+Gazebo everything worked perfectly because it was perfectly stable in hover mode (I mean, when it was flying in a specific point (x,y,z) and not moving).
But now I'm using it in the real world and when I publish a takeoff message it goes up and then anywhere. I don't know if it's because it was hit by anyone (I'm not the first user of this drone) or what can happen. Is this drone pretended to hover stable without doing anything? Or do I have to make a PID to control the velocities and the orientation? How can I do that PID if I don't have any tag or marker? Does the drone give me the yaw, roll, pitch, and velocities?
This is the launch I'm using for the real AR.Drone (it was taken from the Internet):
<launch>
<arg name="droneip" default="192.168.1.1" />
<node name="ardrone_driver" pkg="ardrone_autonomy" type="ardrone_driver" output="screen" args="-ip $(arg droneip)">
<param name="navdata_demo" value="False" />
<param name="realtime_navdata" value="True" />
<param name="realtime_video" value="True" />
<param name="looprate" value="30" />
</node>
</launch>
Thanks
This is one of the differences between simulation and reality. Although the drone has built-in stabilization, it's visual and relies on the drone being able to estimate its velocity. If it can't do that sufficiently accurate enough, then you'll see the behavior that you are.
How about the downward facing camera? Is it working correctly? Are you facing the same problem when you try to control through Mobile App?
It's hard for me to say if it's working correctly, but when I used this drone we'd place an object underneath its camera to help it better estimate its speed (I'm too sure how effective it was but it seemed to better with something in the bottom camera's field of view)
@jayess I also faced the same problem. The reason was downward facing camera was not working because AR 2.0 uses it to hold the position during flight. I replaced the entire body after that it worked perfectly fine. Sometimes cable loose connection leads to the problem.
The downward facing camera is working perfectly. I use it to detect tags and they are detected correctly. I face the same problem when I try to control the drone through the mobile app
What about the documentation, where it talks about the hover modes? I need to detect tags and I programmed a control to land on a tag. Can I add something to my program (like an offset for each thruster) to stabilize it?
or is it any method to stabilize the drone in a position without having any tag or something below? I mean, reading the IMU of the drone
Even with your camera working properly there will be some issues and there will be latency due to everything going over wifi using tcp as well