Skip to content
This repository was archived by the owner on Jul 12, 2025. It is now read-only.

UTAT-UAS/ARCHIVE_flight_stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

139 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flight Stack

ROS package for AEAC flight stack

Package Structure

src/
  |- flight_stack/
  |  |- debug/
  |  |  |- grapher.py       // draws a StateMachine diagram
  |  |  |- launch_sever.py  // launches the website
  |  |  |- website/
  |  |  |  |- index.html    // basic webviewer
  |  |- basic_states.py     // basic states
  |  |- controller.py       // the drone controller
  |  |- flight_stack.py     // the main flight stack
  |  |- logging.py          // logging utilities
  |  |- scripting.py        // cli utilities
  |  |- state.py            // state class and state machine
  |  |- topics.py           // topic names
  |  |- types.py            // custom package types

Tips

As a general principle (if you are dealing with the anti-meridian or north/south poles idk)

dlat, dlong: in degrees to move
+dlat = north
-dlat = south
+dlong = east
-dlong = west

Generally this library uses +x as north, +y as east, and +z is up. This makes it the elusive NEU (north east up) and follows the left hand rule (this is because I chose this randomly a long time ago and never changed it, merge requests welcome)

Development Philosophy

The FlightStack class handles all routines for flying the drone in OFFBOARD mode. Calls Controller methods to setup OFFBOARD, and uses a Machine to handle drone state.

The Controller class handles all mavros communication with the drone. Provides methods and wrappers to control the drones position, speed, etc.

The Machine and State class act as a modular way to model drone behavior. State objects are modular and can be reused in different state machines. A Machine can be embedded in another Machine to model more complex behaviors.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors