<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Tanwir Alam on Medium]]></title>
        <description><![CDATA[Stories by Tanwir Alam on Medium]]></description>
        <link>https://medium.com/@2003tanwiralam?source=rss-43b4993fd543------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*wMnV-Q-gyVl2Skad.jpg</url>
            <title>Stories by Tanwir Alam on Medium</title>
            <link>https://medium.com/@2003tanwiralam?source=rss-43b4993fd543------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 20:02:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@2003tanwiralam/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[From Virtual Worlds to Real Flight Logic: Integrating Unreal, AirSim, Cesium, and ArduPilot]]></title>
            <link>https://medium.com/@2003tanwiralam/from-virtual-worlds-to-real-flight-logic-integrating-unreal-airsim-cesium-and-ardupilot-5cc4075aefd1?source=rss-43b4993fd543------2</link>
            <guid isPermaLink="false">https://medium.com/p/5cc4075aefd1</guid>
            <category><![CDATA[drones]]></category>
            <category><![CDATA[unreal-engine]]></category>
            <category><![CDATA[ardupilot]]></category>
            <category><![CDATA[simulation]]></category>
            <category><![CDATA[airsim]]></category>
            <dc:creator><![CDATA[Tanwir Alam]]></dc:creator>
            <pubDate>Thu, 20 Nov 2025 12:19:29 GMT</pubDate>
            <atom:updated>2025-12-19T06:54:15.862Z</atom:updated>
            <content:encoded><![CDATA[<p><em>What happens when two engineers try to bring real-world flight logic into a virtual Earth? A journey filled with problems, breakthroughs, and one very stubborn dream.</em></p><p>Building a realistic drone simulator wasn’t originally on our company roadmap. But for me and my teammate <a href="http://medium.com/@sadityasinha"><strong>S Aditya</strong>,</a> the idea kept coming back:<br> if we already work in a UAV manufacturing company…<br> <strong>why not build a simulator that flies like a real drone?</strong></p><p>Not a basic animation.<br> Not a simple multirotor model.<br> But a drone with:</p><ul><li><strong>Realistic physics</strong></li><li><strong>Autonomous flight capability</strong></li><li><strong>Actual flight firmware</strong> like ArduPilot or PX4 running underneath</li><li><strong>A true 3D environment</strong> powered by real-world terrain</li></ul><p>So we finally decided — let’s build it.</p><p>What we didn’t know was that this decision would take us through documentation deserts, dead ends, community forks, sleepless nights, and some of the most rewarding “we did it!” moments of our careers.</p><p>This is the story.</p><h3>Why We Chose AirSim + Unreal Engine</h3><p>We began our research like anyone in 2025 would — <br> YouTube, GitHub, ChatGPT, Reddit, discussions with seniors, and lots of back-and-forth with our co-founders.</p><p>After exploring dozens of options, one conclusion stood tall:</p><p><strong>AirSim + Unreal Engine</strong> was the most powerful combination for high-fidelity drone simulation.</p><p>Unreal gives photorealism.<br> AirSim gives physics and APIs.<br> Together, they give magic.</p><p>So we decided — this is the path.</p><h3>Problem 001 — AirSim Is No Longer Developed</h3><p>Just when we were ready to dive in, we hit the first roadblock.</p><p>Microsoft had <strong>stopped the development</strong> of AirSim.</p><p>It felt like the journey ended before it even began.<br> For a moment we genuinely didn’t know what to do.</p><p>Two developers building a replacement for AirSim from scratch?<br> Not happening — not in months, not even in a year.</p><p>So we went back into research mode.</p><h3>The Community Saves the Day</h3><p>During our deep dive, we discovered something surprising:</p><p>Even though Microsoft had stepped away, the <strong>community didn’t</strong>.</p><p>Multiple research labs and companies had created updated forks of AirSim.<br> And that’s when we found <strong>Cosys Lab</strong>, a research group that maintained their own fork — <br> <strong>Cosys-AirSim</strong>, fully compatible with <strong>Unreal Engine 5.x.x</strong>.</p><p>We cloned the repo, built the plugin…</p><p>…and BOOM, AirSim was running in Unreal Engine 5.5.</p><p>The first flight felt almost too real for something that wasn’t real.<br> But still… something felt off.</p><h3>Problem 002 — No Firmware (ArduPilot/PX4) Connection</h3><p>After flying around for a few hours, the excitement started dipping.<br> The drone wasn’t connected to <strong>any</strong> real firmware.</p><p>No ArduPilot.<br> No PX4.<br> No SITL logic.<br> Just raw physics.</p><p>It felt incomplete — like a drone with no brain.</p><h3>PX4 — First Breakthrough</h3><p>We started with ArduPilot, but the documentation didn’t help much. Even simple things like the correct port numbers became mysterious puzzles.</p><p>So we switched to PX4.</p><p>PX4 felt cleaner:</p><ul><li>Better documentation</li><li>More active community</li><li>Clearer SITL setup</li></ul><p>After countless trials with IPs and ports, one moment finally clicked:</p><p><strong>PX4 SITL connected.<br>Telemetry live.<br>Drone flying smoothly inside Unreal.</strong></p><p>We celebrated that moment — because it meant our system worked.</p><p>But our ambition was bigger.</p><h3>ArduPilot — The Real Goal</h3><p>Our mission was clear:</p><p><strong>This simulator must run on ArduPilot.</strong></p><p>And so began a series of long, painful, satisfying, caffeine-powered nights.<br> Logs, MAVLink packets, parameter tuning, SITL restarts… repeat.</p><p>And then, finally:</p><p><strong>ArduPilot connected.<br> Drone armed.<br> Flight mode switched.<br> Takeoff successful.</strong></p><p>Seeing the drone respond to <em>ArduPilot logic</em> inside <em>Unreal Engine</em> through <em>AirSim</em> was surreal.</p><p>We had done it.</p><h3>The Final Touch — A Real-World Environment</h3><p>The physics were good.<br> The firmware connection was stable.<br> The drone was flying in a high-fidelity world.</p><p>But something was still missing.</p><p>A drone simulator becomes complete only when the <strong>world feels real</strong> — actual terrains, real cities, real coordinates, and real geography.</p><p>And since both of us had previous experience with <strong>Cesium</strong>, the choice was obvious.</p><h3>Bringing Earth Into Unreal</h3><p>Cesium gave us:</p><ul><li>Real-world 3D tiles</li><li>Photogrammetry</li><li>Accurate terrain elevation</li><li>Georeferenced coordinates</li><li>Global-scale environments</li></ul><p>We integrated Cesium into Unreal, aligned the georeference system, loaded real terrain, and placed our drone into a world that wasn’t fictional anymore — it was Earth.</p><p>Watching the drone fly over real landscapes, controlled by ArduPilot, rendered by Unreal Engine, fused with AirSim physics…</p><p>That moment made the entire journey worth it.</p><h3>What Comes Next</h3><p>This is just the beginning.</p><p>We’re still exploring:</p><ul><li>Multi-drone missions</li><li>VTOL &amp; custom frames</li><li>Real-time autonomy</li><li>Synthetic data for AI</li><li>Advanced QGC integration</li><li>Sensor simulations</li><li>Swarm behavior</li></ul><p>We have so much more to build, share, and learn.</p><p>But for now, here are the first glimpses of our journey — a combination of passion, curiosity, resilience, and a lot of debugging.</p><p><strong>From virtual worlds to real flight logic — this project is our leap into the future of UAV simulation.</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FWGHkhZff67s%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DWGHkhZff67s&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FWGHkhZff67s%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/9f5cb417ca3b84ba145477fa83853993/href">https://medium.com/media/9f5cb417ca3b84ba145477fa83853993/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5cc4075aefd1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>