#Coding4Fun – How to control your #drone with 20 lines of code! (13/N)

Hi! No code today, just some tips about a specific network configuration to work with the drone. In 2 days I'll share a session about how to do some AI with a Drone, and I just realized that I'll be live doing this session. And, going back to my post 4 in this series, I … Continue reading #Coding4Fun – How to control your #drone with 20 lines of code! (13/N)

#Coding4Fun – How to control your #drone with 20 lines of code! (12/N)

Hi! Today code objective is very simple, based on a request I received from internet: The drone is flying very happy, but if the camera detects a face, the drone will flip out ! Let's take a look at the program working: This one is very similar to the previous one. I also realized that … Continue reading #Coding4Fun – How to control your #drone with 20 lines of code! (12/N)

#Coding4Fun – How to control your #drone with 20 lines of code! (11/N)

Hi! Today code objective is very simple: The drone is flying very happy, but if the camera detects a banana, the drone must land ! Let's take a look at the program working: And a couple of notes regarding the app Still use Haar Cascades for object detection. I found an article with a Xml … Continue reading #Coding4Fun – How to control your #drone with 20 lines of code! (11/N)

#Coding4Fun – How to control your #drone with 20 lines of code! (10/N)

Hi! Back to some drone posts! I was kind of busy during the last weeks and now I can get back to write about the drone. OK, in the last posts I described how to connect and work with the drone camera feed using OpenCV. Now with 2 extra lines of code we can also … Continue reading #Coding4Fun – How to control your #drone with 20 lines of code! (10/N)

#Coding4Fun – How to control your #drone with 20 lines of code! (9/N)

Hi! Let's take some Frames Per Second measurements on the UDP and OpenCV connection. It seems that working with simple movements, the values moves between 30 and 60 FPS. Just added a couple of lines in the main While, to calculate the FPS. # open i = 0 while True: i = i + 1 … Continue reading #Coding4Fun – How to control your #drone with 20 lines of code! (9/N)

#Coding4Fun – How to control your #drone with 20 lines of code! (8/N)

Hi! Now that I started to understand how UDP works, I also did my research to find which are the best options to access an UDP video feed. Lucky for me, there are plenty of resources about doing this task using my old friend OpenCV. Most of the OpenCV documentation is written in C++. However … Continue reading #Coding4Fun – How to control your #drone with 20 lines of code! (8/N)

#Coding4Fun – How to control your #drone with 20 lines of code! (7/N)

Hi! No code today. Mostly because I spend a decent amount of time trying to understand how the DJI Trello camera feed works. In order to access the camera feed remotely we need to perform 2 steps. First we need to send the command "command" to the drone, and then the command "streamon" to enable … Continue reading #Coding4Fun – How to control your #drone with 20 lines of code! (7/N)

#Coding4Fun – How to control your #drone with 20 lines of code! (6/N)

Hi! Today is code time also! And a continuation from my previous sample. Yesterday I show how to read a static value: the battery. And, when you work with a device like a drone there are other important values to analyze in order to send commands to the drone. Like altitude, position, time of flight … Continue reading #Coding4Fun – How to control your #drone with 20 lines of code! (6/N)

#Coding4Fun – How to control your #drone with 20 lines of code! (5/N)

Hi! Today is code time! In my previous post I share some code to send commands to the drone. Today I'll show how to read the information from the drone. Before I start, someone asked if my kids are having fun with the drone. A image will be enough to answer this. Reading drone information … Continue reading #Coding4Fun – How to control your #drone with 20 lines of code! (5/N)

#Coding4Fun – How to control your #drone with 20 lines of code! (4/N)

Hi! The DJI Drone is a great device, you can have a lot of fun and also learn a lot. However, because the main way to interact with the device is via WIFI and UDP, you need to connect to the device WIFI. And, connecting and disconnecting to the is some times not a very … Continue reading #Coding4Fun – How to control your #drone with 20 lines of code! (4/N)