Previous Top Next |
Defining Variables In MATLAB |
We've now completed the control system model in Simulink. Save this Simulink file and close all Simulink windows. Now in the MATLAB window, open the s_pre.m file. We'll be adding several lines of code to associate the variables we created in Simulink with the GNC parameters that can be controlled by the user in PRODAS. The GNC parameters will be defined using the "Trade Studies" Tab. Please add the four lines of code shown below to the file and save. Note that the Canard_Delta and Maneuver_Direction variables include a conversion from Degrees to Radians. This allows us to enter the data in degrees in PRODAS.
You are finished with the s_pre.m file. Save and close the file now.
© 2011 Arrow Tech Associates |