Skip to content

Conversation

@dridri
Copy link
Owner

@dridri dridri commented Oct 16, 2024

This MR restructures the repository to consolidate common code, refactors the CMake build system, and brings in a number of new drivers, features and clean-ups across both the controller and flight targets.


Key Changes

  • Project structure & shared modules
    • Introduced a top-level libs/ directory for shared CMake scripts and common code
    • Renamed and reorganized Find*.cmake scripts (MP4V2, Nasm, QScintilla2, Shine, etc.)
    • Added a new submodule folder to centralize code used by both flight and controller targets
  • Controller PC (controller_pc/)
    • Updated CMakeLists.txt to point at the new libs/ layout
    • Fixed broken references after tree reorg (main.cpp, Stream, UI files)
  • Controller RC (controller_rc/)
    • Overhauled Config parsing (Config.cpp/.h) for more robust settings management
    • Refactored RPi-specific board code:
      • Optimized SPI and GPIO backends
      • Deprecated old Socket interface and replaced with cleaner client/server code
  • Miscellaneous
    • Fixed ambiguous Lua-to-Matrix casts in the maths library
    • Small bug fixes and code style clean-ups throughout

@dridri dridri changed the title new folder to allow sharing modules between flight, controller, and other targets Shared modules for flight, controller, and other targets May 14, 2025
@dridri dridri changed the title Shared modules for flight, controller, and other targets Restructure shared modules and refactor CMake; update controller & flight code May 14, 2025
@dridri dridri marked this pull request as ready for review May 14, 2025 22:20
dridri added 6 commits May 22, 2025 11:32
Moved MCP320x driver from controller_rc/ADCs to lib/sensors

Updated sensor implementations (Accelerometer, BMP180, ICM4xxxx, L3GD20H, LSM303, MPU6050, SR04, etc.)

Updated CMakeLists.txt and Config.* in controller_rc and flight
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants