Open angetria opened 8 years ago
The driver simply publishes what it receives from the drone to ROS as the state. I can't quite remember where we obtained the code->state mapping from. If you experimentally verify that the documentation is wrong, please feel free to correct them and submit a PR.
I have made a ros node and send land, takeoff and geometry::Twist messages through their respective topics. The robot is running as it should but when i check the state i get the following
takeoff -> 7 . It should have been 6 (taking off). landing -> 9 . It should have been 8.
And when its in the air with zero velocity i get hover mode (4) instead of 3 or 7. This happens even if i disable auto-hover mode by giving angular.x (and y) non zero values.
Twist messages are published for a specific duration and with a fixed rate of 40hz.