Discrete Time Sample Block not giving the expected integrated results?
Show older comments
Hi all,
My aim is to be able to visualise flight data in FlightGear. I am feeding into FlightGear via the FlightGear 6DOF preconfigured block a set of parameters (roll rate, pitch rate, yaw rate, horizontal velocity (u,v), vertical rate(w) ).
I am using discrete timing block to integrate my result into position coordinates and aircraft attitude. I realised that I was able to adjust the gains of the blocks to match the desired amplitude for aircraft yaw. However, I was unable to obtain explainable results when I do this for both pitch and roll rates. If anyone has insights to why there was an incomprehensible dip in the output for integrated roll attitude that would be great. I have tried using different solvers and rules to no avail.
Data Read in model:

Expected Yaw:

Simulink Output yaw (Note that each time step is 0.23 seconds, scope read is from the output of the subsystem block which relates to the aircraft attitude)

Expected Pitch:

Simulink Output Pitch:

Expected Roll:

Simulink Output Roll:

Simulated Input Pitch Rate, Roll Rate and Yaw Rate all matches my original flight data:
Pitch Rate Input:

Accepted Answer
More Answers (0)
Categories
Find more on Discrete in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!