Metadata-Version: 2.4
Name: Generalized_ADCS
Version: 0.2.2
Summary: Generalized Attitude Determination and Control System (ADCS) framework.
Author: William Goldman
Author-email: Patrick McKeen <pmckeen@mit.edu>, Niclas Scheuer <nscheuer@ethz.ch>
License-Expression: MIT
Project-URL: Homepage, https://nscheuer.github.io/Generalized_ADCS/
Project-URL: Documentation, https://nscheuer.github.io/Generalized_ADCS/
Project-URL: Repository, https://github.com/nscheuer/Generalized_ADCS
Project-URL: Issues, https://github.com/nscheuer/Generalized_ADCS/issues
Project-URL: Changelog, https://nscheuer.github.io/Generalized_ADCS/release_notes/index.html
Keywords: ADCS,attitude control,attitude determination,spacecraft,satellite,cubesat,smallsat,aerospace,GNC,magnetorquer,reaction wheel,control allocation,Kalman filter,orbit
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: Education
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Astronomy
Classifier: Topic :: Scientific/Engineering :: Physics
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Operating System :: OS Independent
Classifier: Natural Language :: English
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy>=1.26
Requires-Dist: scipy>=1.10
Requires-Dist: matplotlib>=3.7
Requires-Dist: numba>=0.59
Requires-Dist: skyfield>=1.51
Requires-Dist: tqdm>=4.60
Requires-Dist: rich>=13.0
Requires-Dist: DracoPy>=2.2
Provides-Extra: ppigrf
Requires-Dist: ppigrf>=2.0; extra == "ppigrf"
Provides-Extra: nrlmsise
Requires-Dist: pymsis>=0.12; extra == "nrlmsise"
Provides-Extra: viz
Requires-Dist: pyvista>=0.44; extra == "viz"
Requires-Dist: Pillow>=10.0; extra == "viz"
Provides-Extra: viz-video
Requires-Dist: imageio-ffmpeg>=0.4; extra == "viz-video"
Requires-Dist: Pillow>=10.0; extra == "viz-video"
Provides-Extra: viz-mesh
Requires-Dist: trimesh>=4.6; extra == "viz-mesh"
Requires-Dist: fast-simplification>=0.1.7; extra == "viz-mesh"
Provides-Extra: viz-assets
Requires-Dist: Pillow>=10.0; extra == "viz-assets"
Provides-Extra: cpp
Requires-Dist: cmake>=3.27; extra == "cpp"
Requires-Dist: Cython>=3.0; extra == "cpp"
Requires-Dist: pybind11>=2.12; extra == "cpp"
Provides-Extra: docs
Requires-Dist: sphinx>=7.2; extra == "docs"
Requires-Dist: sphinx-autodoc-typehints; extra == "docs"
Requires-Dist: sphinx-copybutton; extra == "docs"
Requires-Dist: myst-parser; extra == "docs"
Requires-Dist: furo; extra == "docs"
Requires-Dist: sphinx-sitemap; extra == "docs"
Provides-Extra: poster
Requires-Dist: qrcode[pil]; extra == "poster"
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"
Requires-Dist: numdifftools; extra == "dev"
Requires-Dist: black; extra == "dev"
Requires-Dist: ruff; extra == "dev"
Requires-Dist: ppigrf>=2.0; extra == "dev"
Dynamic: license-file

# 🚀 Generalized ADCS

<p>
  <a href="https://aeroastro.mit.edu/starlab/">
    <img src="https://raw.githubusercontent.com/nscheuer/Generalized_ADCS/main/docs/source/_static/starlab_logo.svg" alt="STARLab Logo" height="100">
  </a>
  <a href="https://aeroastro.mit.edu/small-satellite-collaborative/">
    <img src="https://raw.githubusercontent.com/nscheuer/Generalized_ADCS/main/docs/source/_static/ssc_logo.png" alt="Small Satellite Collaborative Logo" height="100">
  </a>
</p>

<strong>Generalized ADCS</strong> is a Python framework for satellite attitude determination
and control (ADCS), designed for **research, prototyping, and flight-software development**.
The framework emphasizes generality, modularity, and transparency for modern spacecraft
control and estimation workflows.

<p align="center">
  <a href="https://nscheuer.github.io/Generalized_ADCS/index.html">🛠 Documentation</a> •
  <a href="https://nscheuer.github.io/Generalized_ADCS/installation/index.html">📘 Installation</a> •
  <a href="https://nscheuer.github.io/Generalized_ADCS/tutorials/index.html">🧪 Tutorials</a> •
  <a href="https://nscheuer.github.io/Generalized_ADCS/contributing/index.html">🤝 Contributing</a>
</p>

<p align="center">
  <img src="https://raw.githubusercontent.com/nscheuer/Generalized_ADCS/main/docs/source/_static/release_notes/0_2_2_animation_preview.png"
       alt="ICESat-2 performing attitude maneuvers over Earth at sunset"
       width="75%">
</p>


## ✨ Key Features

<details>
  <summary>✅ Python-first, designed for research and experimentation</summary>

  - Built in Python for accessibility, rapid prototyping, and easy customization.
  - Minimal setup, extensive documentation, and hands-on tutorials.
  - Easy to inspect, debug, modify, and extend with custom algorithms.
  - Numba-accelerated numerical kernels for computationally demanding simulations.
  - Monte Carlo support for statistical analysis and robustness testing.
</details>

<details>
  <summary>✅ Generalized 6-DOF spacecraft dynamics</summary>

  - Attitude propagation using SciPy's <code>solve_ivp</code> with RK45 integration.
  - Fully configurable spacecraft inertia, geometry, and external disturbances.
  - Support for underactuated and overactuated spacecraft configurations.
  - Coming soon: Fast, Numba-accelerated RK4 propagation.
</details>

<details>
  <summary>✅ Flexible orbit propagation</summary>

  - Initialize orbits from position vectors, orbital elements, or TLEs.
  - Keplerian, SGP4, and RK4 orbit propagation.
  - Model atmospheric drag, solar radiation pressure, and J2 perturbations.
</details>

<details>
  <summary>✅ Advanced attitude estimation</summary>

  - Plug-and-play EKF, MEKF, UKF, and SRUKF estimation frameworks.
  - Real-time sensor bias and disturbance estimation.
</details>

<details>
  <summary>✅ Flexible attitude control and optimization</summary>

  - PD, LQR, projection-based, and magnetorquer-only feedback controllers.
  - LP and QP control allocation for underactuated systems.
  - ALTRO-based trajectory optimization.
</details>

<details>
  <summary>✅ Realistic sensor and actuator modeling</summary>

  - Configurable noise and bias models.
  - Sensors: Gyroscopes, magnetometers, sun sensors, star trackers, Earth horizon sensors, and GPS.
  - Actuators: Reaction wheels and magnetorquers.
  - Growing catalog of preconfigured CubeSat-scale hardware models.
  - Explore available models in <code>ADCS/satellite_hardware</code>.
</details>

## 📦 Installation

```bash
pip install generalized-adcs
```

Optional extras: `viz` (3-D orbit animation), `viz-video` (MP4 export from
the Godot viewer), `viz-mesh` (spacecraft model import), `viz-assets`
(rebuilding viewer textures), `nrlmsise` and `ppigrf` (optional environment
models), `dev` (test tooling), `docs` (documentation build), `cpp` (toolchain
for the optional C++ add-ons).

```bash
pip install "generalized-adcs[viz]"
```

Requires Python 3.10 or newer. For deterministic reproduction of published
campaign results, see `requirements-repro.txt` in the repository.

Optional add-ons:
- trajectory_planner (tplaunch/pysat) and SALTRO (saltro_py) are optional C++ extensions.
- Build instructions are in docs/Install_WSL.md and docs/Install_Windows.md.



## Papers

- [A Modular Open-Source ADCS Framework for Small Satellite Development and Testing](https://nscheuer.github.io/Generalized_ADCS/papers/package.html) — presented at SmallSat Europe 2026 in Amsterdam, Netherlands.
- [Generalized Attitude Control for Small Spacecraft](https://nscheuer.github.io/Generalized_ADCS/papers/generalized_acs.html) — presented at the 40th Annual Small Satellite Conference, Poster Session 2, in Salt Lake City, Utah.
- [A Feasibility-Aware Attitude Trajectory Planner for Small Satellites](https://nscheuer.github.io/Generalized_ADCS/papers/planner.html) — presented at the 40th Annual Small Satellite Conference, Flash Talks Session 3, in Salt Lake City, Utah.

## 📚 Academic Background

This project is based on the PhD research of **Patrick McKeen**:

- 🔗 Source Code:  
  https://github.com/patrickmckeen/PhD_Dissertation_Code
- 📄 Dissertation:  
  *Computational Methods to Improve Satellite Attitude Determination and Control
  with a Focus on Autonomy, Generalizability, and Underactuation*  
  https://dspace.mit.edu/handle/1721.1/158874
