This repository contains the PID & ASMC controller for attitude and altitude control for fixed wing uav in PX4-GazeboSim.
- ROS2
- Gazebo
- PX4
- QGroundController (Ground Station)
The PID and ASMC controller was developed and fine tuned for the advanced plane model in the gazebo sim.
ASMC controller was employed to control the attitude of the vehicle and the PID controller was used to maintain the altitude of the vehicle.
Make sure to setup - Docker - Vscode with docker and devcontainer extensions
if you face any issue with nvidia card visit this repo for more information.
-
Clone this repository
git clone https://github.com/Srindot/asmc-fixed-wing-controller.git
-
Open the project with vscode and make sure you install docker and devcontainer extensions.
-
Press
ctrl+SHIFT+Pto open up the command pallete, then search forDev Containers: Rebuild and Reopen in Containerand select it.Note: This will take a long time, so no need to fret.
-
After entering container, press
ctrl+SHIFT+Pagain, then search forTasks: Run Tasksand then run the sessions sequentially.
If you face any troubles, just raise a issue.
