v0.4.0 - Multi-Airframe Support and 3-Axis Control System#48
Open
BryanSouza91 wants to merge 28 commits into
Open
v0.4.0 - Multi-Airframe Support and 3-Axis Control System#48BryanSouza91 wants to merge 28 commits into
BryanSouza91 wants to merge 28 commits into
Conversation
… the nrf52840 FPU;
…on error with initPWM Set call;
…ed units and corrected as necessary;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Multi-Airframe Support and 3-Axis Control System
Summary
This update transitions WingFC from a fixed elevon controller to a modular, multi-airframe flight control system. It introduces a dedicated mixing layer, expands hardware output support to 5 servos, and upgrades the stabilization engine to full 3-axis control (Pitch, Roll, and Yaw).
Major Changes
1. Modular Airframe Mixer
mixer.goto decouple PID control outputs from physical servo movements.config.go.2. 3-Axis Stabilization
kalman.goto track Pitch, Roll, and Yaw states simultaneously.3. Hardware and PWM Improvements
config.go.Modified Files
config.go: Added aircraft types, servo reversals, and yaw PID constants.main.go: Integrated new 3-axis control and mixer logic.hardware.go: Updated pin mappings and PWM peripheral configurations.helpers.go: Implemented setAllServos() and applyReversal() functions.kalman.go: Refactored for 3-axis state estimation.mixer.go: (New) Core mixing logic for different aircraft configurations.matrix.go: Added support for 3x3 and 3x2 matrix operations.dshot.go: Added support for DShot ESCs.