Problem with "Hovering" state in ardrome/navdata topic
Problem with "Hovering" state in ardrome/navdata topic
I'm trying to implement a .cpp program to take a picture when my AR.Drone 2 goes to a position that I ask it to go and take a picture when it stabilises in hovering state. I used ardrome_autonomy and tum_ardrone to navigate the drone. In my takepicture.cpp program I used a subscriber to the navdata topic. Everything works fine except from the fact like when the drone moves from on position to an other the status that the navdata topic sends is always "flying". Even when it reaches the goto target that I have set, it never enters the "Hovering" state. The other states work fine (like the landing,looping,etc).
Any ideas on what might be going wrong? Or how to know that the drone is hovering without using navdata.state ?