I was able to get it working as one wide display with three windows or screens (option 1 in the docs/README.multiscreen). The results is a really cool FG configuration. That left me with three monitors and an upgraded cpu and gpu. So I pulled the capacitors from the one and fixed the other with them. The one had some capacitors that went out and the other one I think had a bad transformer of some sort. He also had a leftover monitor and I was able to salvage parts from one broken monitor to fix another broken monitor. However, you can observe how well the aircraft is trimmed in FlightGear by running the simulation in straight level flight (use constant zero as actuator inputs).I hit the jackpot and inherited one of my son's hand-me-downs. It won’t work with the system in its current state because of the position values outputted by the model. The trimming however only works with an aircraft in a steady state. Run the ValidateTrimPoint.m script to validate if the trimming works as expected. You can now run the script repeatedly until you receive satisfactory results. After you obtain the trim_values_straight_level.mat file change the initialization value to 1. Set the initialization value to zero for the first run. To use the aircraft trimming open the UAV_trim.m file. After the simulation is complete you should receive plots with aircraft data. The simulation is running in real time so keep that in mind if you want to use longer simulation time. (please make sure GPS SENSOR subsystem is commented out if you use older version of Matlab). The full simulation setup should look something like this.Īfter running the init.m it should successfully run. You will most likely get that error if you interrupt the simulation and try to run it again. If you get any UDP protocol related errors, please restart Matlab and try again. If you want to run a second simulation after that you will have the inputs already in the workspace but the simulation still has to be run through init.m script because it initiates the MAVLink HEARTBEAT message which establishes the connection with QGroundControl. If you try running the simulation by running the UAVSimulation.slx it won’t work as it doesn’t have the correct inputs. The full simulation is only started by running the init.m script. UAV_model.m is the main function implementing all the flight dynamics of the aircraft. The script loads up trim_values_straight_level.mat file which contains trim conditions used by the UAV_model.m as inputs. Open the UAVSimulation.slx file to investigate the Simulink model and open the InitializeConstants.m file. To use the HALE General Atomics RQ-9 Reaper model, execute the runfgmq9.bat file. To use a small UAV Rascal 110 (electric version) model execute the runfgrascal.bat file. To use the default FlightGear Cessna 172 model execute the runfg.bat file. bat files.Ĭurrently there are 3 aircrafts to choose from: FlightGear must be launched by executing one of the. Copy them to your Program Files/FlightGear/data/Aircraft directory. All of the custom FlightGear models are included in FlightGear models directory. To enjoy the full simulation of the system, you need to first launch QGroundControl and have installed FlightGear 2020.3 (needs to be installed separately). Not sure about the older versions.) UAV MODEL Simulation (It is possible to downgrade it to earlier versions with the GPS sensor subsystem commented out. It has also been featured in an open-access article published in the MDPI Automation journal. It was awarded "Best Project Award" by RAeS (Royal Aeronautical Society) at Coventry University in 2022. I made this software for my BEng Aerospace Systems Engineering dissertation. Based on RCAM Model created by Christopher Lum. Interfaced with QGroundControl and Flight Gear via Simulink. A 6 DOF aircraft model developed in Matlab.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |