Makeblock App for Airblock Drone is not flying in a square path


#1

Hi everybody. We are using AIRBLOCK in robotics class and MAKEBLOCK appAPP to create the code. We are trying to fly a drone by programming a flight path that follows a SQUARE trajectory and returns to its starting point. But in the end the code is not working. Here I have some images of the code.
I want to know if any of you can help me verifying why the drone is not following the path indicated in the code?

Thank you in advance for the help.


#2

@gjulio Why is one of the blocks drone forward for 5s instead of drone forward for 3s like the others? It seems like that would cause and issue. Also, to go in a complete square, you should only need to go forward and turn right 4 times, not 5.

Let me know if that helps!


#3

Square Flight Path:

Code:

My only issue with the drone flying in a square path is on startup; during the “Drone Rising” part of the code, the drone rotates and goes in a random direction. During “Drone hover”, the drone isn’t staying in the air in one place like I thought it would, rather it keeps going up and down and touches the ground sometimes, even when I increase the rising time.


#4

@JaydenC I guess the drone can hover in place but does not keep its direction when doing so? In that case, I guess you could move forward extremely slowly instead of hovering, or something like that, to keep the direction good, but I don’t have one of these, so I’m not sure if it would work…


#5


Questions:
How many seconds should I change the code to in order for it to not go too far or too short?
What is the proper height for the drone to move in a square without crashing?
Why doesn’t the full code work properly?
Is the “wait” code necessary?


#6

@JaydenC @Randallh did you guys figure anything out on this? I don’t have an Airblock. Just experiment until you get it right, I guess.


#7

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.