- Joined
- May 20, 2022
- Messages
- 3
- Reaction score
- 0
Hey everyone, just got a tello and dived straight into programming but have an issue right now.
I've imported and am using the djitellopy package, and am trying to be able to control the drone to move forward while also recording video.
The issue is I'm trying to have the drone move in a specified pattern (travel along the perimeter of a square), and the easiest way I've thought of to do this is with the move_right() and rotate_counter_clockwise() functions, for example, move_right(50), then rotate_counter_clockwise(90), then repeat until the drone makes a full square.
This works, but the issue is that to record video, I would need a while loop of getting the frames, which would be incompatible with the movement of the drone (code wont run past move_right() until it is done executing).
I've tried using multiprocessing and running the two in conjunction, but tello errors, which I assume is a result of it not being able to hand capturing frames while it is executing move_right().
Any thoughts/advice?
Thank you!
I've imported and am using the djitellopy package, and am trying to be able to control the drone to move forward while also recording video.
The issue is I'm trying to have the drone move in a specified pattern (travel along the perimeter of a square), and the easiest way I've thought of to do this is with the move_right() and rotate_counter_clockwise() functions, for example, move_right(50), then rotate_counter_clockwise(90), then repeat until the drone makes a full square.
This works, but the issue is that to record video, I would need a while loop of getting the frames, which would be incompatible with the movement of the drone (code wont run past move_right() until it is done executing).
I've tried using multiprocessing and running the two in conjunction, but tello errors, which I assume is a result of it not being able to hand capturing frames while it is executing move_right().
Any thoughts/advice?
Thank you!