Skip to content

Autonomous-Flight-Team/fixed-wing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

111 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✈️ Fixed Wing Code

💻 Installation Instructions

  1. Install the PlatformIO IDE extension in VSCode. It may take several minutes to install.
  2. Clone the repository and open it in VSCode.
  3. Wait for PlatformIO to initialize. Once it has initialized, run PlatformIO: Upload from the command palette.

🪾 Commit Guide

  1. For each new feature you develop, checkout a new branch from the testing branch.
  2. When the feature is complete, create a PR and merge your branch into testing. Build from the testing branch onto the teensy to ensure the code compiles and works as intended.
  3. When the testing branch is in working order, create a PR to merge testing into main. You will require another person to review this code and approve it for production code.

Commit Diagram

🌐 Code Quality Guide

Rules:

  1. No magic numbers -> Name all variables.
  2. Minimum variable and function name size is 5 characters.
  3. All functions have header comments.
  4. Spaces before and after every operator.
  5. Maximum line length 100 characters.
  6. Name stamp all files you worked on.

📕 Documentation

Code Structure Google Doc
Code Diagram
Flight Time Calculation
Radio Integration

🛰️ MAVLink Message Discovery (Developer Notes)

When you need to find MAVLink message IDs, structs, or decode helpers:

  1. Start from #include <MAVLink.h> and open the dependency header at: .pio/libdeps/teensy41/MAVLink/MAVLink.h
  2. MAVLink.h includes mavlink/common/mavlink.h, which includes the generated message headers.
  3. Use rg to locate the specific message name in the generated headers:
    • rg -n "MAVLINK_MSG_ID_SET_POSITION_TARGET_GLOBAL_INT" .pio/libdeps/teensy41/MAVLink/mavlink/common
    • rg -n "set_attitude_target" .pio/libdeps/teensy41/MAVLink/mavlink/common
  4. The message definitions live in files like:
    • .pio/libdeps/teensy41/MAVLink/mavlink/common/mavlink_msg_set_position_target_global_int.h
    • .pio/libdeps/teensy41/MAVLink/mavlink/common/mavlink_msg_set_attitude_target.h

About

This repository contains the code for the Fixed Wing drone for the 2025-26 school year.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors