transition from low-凯发k8网页登录
evolve your uav plant model continuously to stay in sync with the latest information available.
background
an unmanned aerial vehicle (uav) design cycle provides incrementally better access to uav characteristics as the design progresses. by increasing its fidelity, this information can be used to continuously evolve a plant model through a model based design approach.
towards the end of the design cycle, there is enough information to develop a high-fidelity plant. to accurately model the uav, a high-fidelity model incorporates modeling all forces and moments, wind and environmental effects and sensors in detail. however, this level of information may be unavailable to a designer early in the design process. to build such a complex model, it can take several flight and wind tunnel tests to create enough detailed aerodynamic coefficients to compute all forces and moments that affect the uav. these factors can potentially block guidance algorithm design until the end of the design process, when a more realistic estimate of uav dynamics is obtained.
to concurrently design a guidance algorithm sooner, a uav algorithm designer can start with a low-fidelity model and evolve their plant model as and when additional data becomes available.
designing a guidance algorithm using only a low-fidelity model can also pose a risk. without controller or aerodynamic constraints, an optimistic guidance technique can fail for a real uav with slower aircraft dynamics.
this example highlights an alternative approach. you progress from the low-fidelity guidance block to a medium and then high-fidelity model by progressively adding layers of control and dynamics to the simulation. in this process, the medium-fidelity model becomes a useful tool for leveraging limited information about a plant model to tune and test guidance algorithms.
the medium-fidelity model is thus used to test a given path following an algorithm. since the high-fidelity model is unavailable until the end of the design process, the high-fidelity model is only used later to validate our modelling approach by comparing step response and path following behavior.
open example and project files
to access the example files, click open live script or use the openexample
function.
openexample('shared_uav_aeroblks/uavfidelityexample')
open the simulink™ project provided in this example.
cd fidelityexample openproject('fidelityexample.prj')
the project contains three versions of a uav model, low-fidelity, medium-fidelity and high-fidelity with steps to study their step response and path following behaviour.
low-fidelity model
assume your uav has the following design specifications shown in the table below. the low-fidelity variant provided in this model is tuned to achieve the desired response, but you can tune these gains for your specific requirements. the low-fidelity plant uses the uav guidance block which is a reduced order model for a uav. to run the low-fidelity variant, click the simulate plant shortcut under the low fidelity group of the project toolstrip.
this shortcut sets the fidelitystage parameter to 1, configures the fidelitystepresponse model to simulate the low-fidelity model, and outputs the step response. the step response is computed for height, airspeed, and roll response.
open the uav fixed wing guidance model block in the fidelitystepresponse/fixedwingmodel/lowfidelity subsystem. in the configuration tab, inspect the gains set for height, airspeed, and roll response. this guidance block integrates the controller with the dynamics of the aircraft. the low-fidelity variant gives a first estimate of how fast the uav can realistically respond to help tune high-level planners.
medium-fidelity model
as the uav design progresses, the lift and drag coefficients become available. a motor for the aircraft is selected by the user, which defines the thrust curves. to test the validity of the guidance algorithm against this new information, the example adds this information to the plant model in this step.
to design a medium-fidelity model, the model needs only preliminary aerodynamic coefficients, thrust curves, and response time specifications. to model a medium-fidelity uav, you can use the fixed-wing point mass block. the block only requires lift, drag and thrust force inputs, which are much easier to approximate at an early design stage than detailed forces and moments of an aircraft. to set up the medium-fidelity variant, click the setup plant shortcut under the medium fidelity group of the project toolstrip.
examine the vehicle dynamics tab in the model under fidelitystepresponse/fixedwingmodel/mid fidelty/uav plant dynamics/vehicle dynamics.
the medium-fidelity model represents the uav as a point mass with the primary control variables being the angle of attack and roll. this medium-fidelity plant model takes in roll, pitch, thrust as control inputs. the point mass block assumes instantaneous dynamics of roll and angle of attack. this model uses a transfer function to model roll lag based on our roll-response specification shared in the table within the previous step.
the medium-fidelity aircraft controls pitch instead of angle of attack. since the angle of attack is an input to the point mass block, the plant model converts pitch to alpha using the following equation.
, and represent pitch, flight path angle in the wind frame, and angle of attack respectively.
unlike the low-fidelity model, the medium-fidelity model splits the autopilot from the plant dynamics. the medium-fidelity plant needs an outer-loop controller for height-pitch and airspeed-throttle control to be added. the predefined controllers provided are using standard pid-tuning loops to reach satisfactory response without overshoot. to inspect the outer-loop controller, open the outer_loop_autopilot
simulink model.
medium-fidelity step response
the low-fidelity plant was tuned in the previous step by assuming that all response time specifications are met by the uav. to test this assumption, use the medium-fidelity plant. the study of the step response of the improved plant is used to contrast the performance of the low-fidelity and medium-fidelity variant. to simulate the medium-fidelity step response, click the simulate plant shortcut under the medium fidelity group of the project toolstrip. the step response plots appear as figures.
notice that the model meets the design criteria shown in the table below by achieving an air speed settling time of 0.6 seconds and a height response of 4.1 seconds. however, the height response is slower than the low-fidelity variant. this lag in response is expected due to the additional aerodynamic constraints placed on the medium-fidelity plant.
simulate path following algorithm
with a more accurate response from the uav medium-fidelity model, you can now test waypoint follower or guidance algorithms to follow waypoints. for the guidance algorithm design, see the "tuning waypoint follower for fixed-wing uav" example.
to simulate and visualize the medium-fidelity uav path following the model, click the simulate path follower shortcut under the medium fidelity group of the project toolstrip.
notice that the medium-fidelity uav follows the desired path accurately.
high-fidelity step response
the medium-fidelity model was used to test a path follower design using simple aircraft parameters available at an early design state. however, it is important to continue adding fidelity to capture uav control response to study more complex situations. for example, the use of more detailed aerodynamics coefficients allows analysis of complex motions such as doublet maneuvers. another example is, adding actuator dynamics lets you study the subsequent effect on inner loop controllers for attitude, which can cause destabilization. in this way, the high-fidelity plant allows refinement of control system design. in this step, to study the change in response, we look at a high-fidelity plant with these added dynamics.
the high-fidelity plant inputs all forces and moments to a 6-dof block, adds on-board sensors, and models actuator dynamics for the uav. unlike the mid-fidelity plant, the high-fidelity version does not take attitude inputs directly. instead, an inner loop controller is added to control attitude. additionally, a yaw compensation loop balances the non-zero sideslip. the model reuses the outer-loop controller designed for the medium-fidelity model. to validate that the medium-fidelity model provided useful intermediate information, use the response of the higher fidelity model.
to simulate and visualize the high-fidelity step response, click the simulate plant shortcut under the high-fidelity group of the project toolstrip. notice that despite added complexity, the trajectory matches well with the medium-fidelity model. also, notice the design specifications are relatively the same for the high-fidelity stage. this similarity shows that the medium-fidelity plant modelled uav dynamics accurately.
simulate path following algorithm for high-fidelity
towards the end of the design cycle, the high-fidelity model finally becomes available. to get the final uav path following characteristics, you can now test the guidance algorithm developed in previous steps on the high-fidelity plant. click the simulate path follower shortcut under the high-fidelity group of the project toolstrip.
notice that the model obtains a similar response to the medium-fidelity model using the guidance and outer-loop control parameters. this validates the guidance algorithm with a high-fidelity plant.
conclusion
the medium-fidelity model accurately predicts the uav dynamics making optimum use of limited information available during design. the example designs the outer loop controller and tests a waypoint follower without needing all the information in a high-fidelity plant model.
to model additional dynamics such as actuator lag, the medium-fidelity plant is flexible and can continuously evolve alongside design. the example obtains results under zero-wind conditions. in the presence of wind disturbances, the controller and path follower performance tracking might be adversely affected. to augment the autopilot controller to compensate for wind effects, leverage the atmospheric wind model in the high-fidelity plant model.
see also
blocks
- |