whatisgithub

What is flyguard?

tylerlicodes/flyguard — explained in plain English

Analysis updated 2026-05-18

98PythonAudience · developerComplexity · 5/5LicenseSetup · hard

In one sentence

An autonomous drone system that uses AI camera detection and a laser to kill horn flies on cattle, with extensive safety interlocks before firing.

Mindmap

mindmap
  root((Flyguard))
    What it does
      Kills horn flies
      Drone patrol route
      AI detection
    Tech stack
      Python
      YOLO
      Jetson Orin
    Safety
      Geofence check
      Human detection
      Audit log
    Use cases
      Cattle farms
      Simulated testing
    Audience
      Developers
      Researchers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Automate horn fly control on cattle pastures using a patrolling drone

USE CASE 2

Test the full detect-and-fire pipeline safely using the simulated mode

USE CASE 3

Train a custom YOLO detector from synthetic images when real fly photos are unavailable

USE CASE 4

Build a ground control dashboard for monitoring drone safety interlocks

What is it built with?

PythonYOLOJetson OrinDJI SDK

How does it compare?

tylerlicodes/flyguardpenthertz/grimoirehuey1in/windsurfx
Stars989897
LanguagePythonPythonPython
Setup difficultyhardmoderatemoderate
Complexity5/52/53/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1day+

Requires a DJI Matrice 350 RTK drone and NVIDIA Jetson Orin, or use the simulated mode for testing without hardware.

MIT covers the software, but does not cover the separate legal obligations of operating lasers and drones.

So what is it?

Flyguard is a Python project for an autonomous drone system designed to kill horn flies on cattle farms. Horn flies are small parasitic insects that feed on cattle and cause weight loss, reduced milk production, and disease. The system flies a drone on a patrol route over a pasture, uses a camera and AI object detection to spot horn flies on cattle, and fires a laser aimed by a motorized mount to kill them. The safety design is the most detailed part of the codebase. The laser can only fire when every one of a set of independent checks passes: the system must be armed with a hardware key, the drone must be within a defined geofence, no human must be visible in the camera frame, the detected target must be identified as a horn fly with sufficient confidence, the beam must be aimed clear of the cattle's head and eyes, the distance must be within a safe range, the gimbal must have settled on the target, a thermal duty cycle limit must not be exceeded, and a live heartbeat signal must confirm the operator is still present. Any failure in any check blocks firing. Every shot and every refusal is written to a tamper-evident audit log. The README notes that the laser involved is an eye hazard classified as Class 3B or 4. The system targets DJI Enterprise drones such as the Matrice 350 RTK as the primary hardware, paired with an NVIDIA Jetson Orin computer mounted on the drone. A fully simulated mode is included so the complete detection-fire-patrol loop can be tested without any physical hardware. A web-based ground control station runs locally and shows the live camera feed with detection overlays, a safety interlock panel that must show all green before firing is permitted, and controls for arming the patrol, disarming, and triggering an emergency stop. The emergency stop is designed to be reachable in one click from any state. The AI detection component uses YOLO, a common object detection framework, and the repository includes tools to generate synthetic training images and train the detector from scratch if you do not have labeled real-world data. The project is MIT licensed for the software, but the README notes that operating lasers and drones carries separate legal obligations that the software license does not cover.

Copy-paste prompts

Prompt 1
Explain how Flyguard's safety interlock chain prevents the laser from firing unless every check passes
Prompt 2
Help me set up Flyguard's simulated mode so I can test the detect-fire loop without a real drone
Prompt 3
Walk me through training a custom YOLO fly-detection model using Flyguard's synthetic image generator
Prompt 4
Show me how to add a new safety check to Flyguard's interlock system

Frequently asked questions

What is flyguard?

An autonomous drone system that uses AI camera detection and a laser to kill horn flies on cattle, with extensive safety interlocks before firing.

What language is flyguard written in?

Mainly Python. The stack also includes Python, YOLO, Jetson Orin.

What license does flyguard use?

MIT covers the software, but does not cover the separate legal obligations of operating lasers and drones.

How hard is flyguard to set up?

Setup difficulty is rated hard, with roughly 1day+ to a first successful run.

Who is flyguard for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.