🔋Custom Drone Battery Level Indicator: Python HUD Programming | Design & Development Tutorial
💡Embark on a transformative journey into drone programming with our latest tutorial featuring the Tello drones. We're moving beyond the basics to introduce a revolutionary feature for drone enthusiasts: a custom-designed battery level indicator. 🔋 ✈️ Say goodbye to simplistic numeric battery displays. Join us in integrating a dynamic, colorful battery icon—akin to those on smartphones and laptops—into your drone's HUD using Python. 🚁 Previously, we covered the basics of displaying the Tello drone's battery level as plain text. Now, we're taking it up a notch. Through mathematical logic and creative coding, we've developed an indicator that not only updates in real-time but also utilizes color changes to signal critical battery levels, enhancing your flying experience by keeping you informed about your drone's battery status at a glance. 🚨 📌 What's Inside This Tutorial: 00:00 – 00:41 – Introduction 00:42 – 03:00 – GitHub repository mention & overview of current modules 03:01 – 05:21 – Thinking through the logic and design: Breaking the battery level into fractions 05:22 – 07:38 – Thinking through the logic and design: Specifying bar colors 07:39 – 09:20 - Thinking through the logic and design: The final vision to put into code 09:21 – 11:18 – Code walkthrough: Introducing the indicators class 11:19 – 12:12 - Code walkthrough: Using the get_battery() method of the Tello class 12:13 – 14:12 - Code walkthrough: Updating the battery level in real-time with threading 14:13 – 21:08 - Code walkthrough: Drawing the battery indicator as envisioned & final note on the update_indicators() method 21:09 – 24:30 - Code walkthrough: The application module; what was taken from the previous module, what was added/changed, and tying in the gamepad controller for drone control 24:31 – 25:57 - Code walkthrough: A final note on threading in our code 25:58 – 28:19 – Easing threading concerns with some design insights 28:20 – 39:00 – Demo time! A long test of the battery indicator by flying the drone and letting the battery die 39:01 – 41:26 – Acknowledging the crashes and a successful test, final thoughts, and thanks to you all! 📎 Repository Links: • GitHub Repository for Code and Resources: https://github.com/Jacob-Pitsenberger/Tello-Drone-Heads-Up-Display-Guidance-System-HUD-HGS- • Tello-Drone-Gamepad-Xbox-One-Control-GUI: https://github.com/Jacob-Pitsenberger/Tello-Drone-Gamepad-Xbox-One-Control-GUI • Tello-EDU-Examples - reading flight data: https://github.com/Jacob-Pitsenberger/TelloEDU-Examples/blob/master/flight_data.py 📷 Video Links: • Control Tello Drones with a Game Controller | Drone Programming Tutorial | Python | Tkinter | Inputs: https://www.youtube.com/watch?v=IqJfxuwADJ8 • Mastering Tello Drone Sensor Data Reading with Python: https://www.youtube.com/watch?v=hjVfDW7c2zc ✅ Dive into this coding adventure to upgrade your drone's HUD with a custom battery indicator. Whether you're an experienced drone pilot or new to drone programming, this tutorial is designed to enhance your skills and drone experience. 🏷️ Hashtags: #pythontutorial #customhud #batteryindicator #tellodrone #codingtutorial #techinnovation #dronepilots #programmingprojects
Download
1 formatsVideo Formats
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.