CrazyFlie autonomous flight and control problem with the Python API #1639
Replies: 3 comments
-
Hi Daniel, |
Beta Was this translation helpful? Give feedback.
-
Good morning, Finally we have managed to perform the hover flight correctly ( hover ). By setting the original orientation, we have managed to keep the aircraft in hovering flight as shown in the video below. As a help for the rest of the people, we show below the code that performs a hovering flight for about 40 seconds approximately. VERY IMPORTANT: THE DRONE MUST BE SET IN THE CORRECT ORIENTATION AT TAKE-OFF AS SPECIFIED HERE. : https://www.bitcraze.io/documentation/tutorials/getting-started-with-flying-using-lps/
Thanks again for your help @Bananazooka. |
Beta Was this translation helpful? Give feedback.
-
Happy that it was solved! |
Beta Was this translation helpful? Give feedback.
-
Good morning,
We have been trying for days to perform autonomous flights with the Python API provided.
We have installed Loco Positioning System and although there is a slight deviation of 10 cm positioning the drone is positioned relatively well.
Below, we show the examples we have used and finally the trajectories that are being presented. In this case the main problem is that the Crazyflie loses control after take-off.
Even the basic examples of movement in the BasicMotion.py file generate this problem.
We thought it might be a problem with 1 CrazyFlie in particular, but we have tried two others and they all behave the same way in the same way.
Performing test with take-off function (take_off_simple)
In this case, the drone takes off and then goes out of control and does not maintain the hover.
It could be logical since this function is not performing any positioning control, so any external disturbance or the drone itself may cause the drone to move.
For this reason, a function has been implemented that controls the position and makes corrections to try to maintain the hover, but even so the drone does not manage to do so. (Below are some examples).
Example 1:
Example 2
Example 3:
With all these examples and those provided as native examples, the drone neither maintains stability nor performs controlled translations; it directly leaves the flight area until it crashes.
Below I show the graphs of the trajectories within the airfield so that you can see how he loses control.
We need to know where we are going wrong and how to perform this kind of examples and drone control, both hovering and controlled translations within the flight area established with Loco Positioning System.
Thank you very much for everything.
Best regards
Daniel Caballero :-)
Beta Was this translation helpful? Give feedback.
All reactions