C. Controller Implementation
Last updated
Was this helpful?
Last updated
Was this helpful?
In this section, the controller design from section B is implemented on the physical Quanser Aero hardware. We desire to reproduce the simulation results from the controller design section. The performance specifications are identical. Download Part C Aero.zip file and unzip to your folder containing the Control Design setup MATLAB script.
Unlock pitch axis and lock yaw axis.
Open q_aero_2dof_PID.slx.
Set pitch controller PID gains to the values obtained in Step 7 of the section under in . If variables are in the workspace, you may directly put gain values into the variables.
Set yaw controller PD gains and feedforward controller gains to 0.
Apply a pitch-only command ( , ).
Run SIMULINK: To build the model, click down arrow on Monitor & Tune under Hardware tab and then Build for monitoring . This generates the controller code. Click Connect button under Monitor & Tune and then click Start .
GET DATA OUT!!! and save it as pitch_only.mat
.
Unlock yaw axis and lock pitch axis.
Set pitch controller PID gains and feedforward controller gains to 0.
Apply a pitch-only command ( , ).
Run SIMULINK.
GET DATA OUT!!! and save it as yaw_only.mat
.
Unlock both pitch and yaw axes to enable the full 2 DOF motion.
Implement the PID and PID gains in pitch and yaw controllers respectively. Set feedforward gains to zero.
Apply simultaneous pitch and yaw commands ( , ).
Run SIMULINK.
GET DATA OUT!!! and save it as pitch_yaw.mat
.
Repeat the pitch+yaw experiment with simultaneous pitch and yaw commands ( , ).
Save data as ff_pitch_yaw.mat
.
Close SIMULINK. DO NOT SAVE THE CHANGES!
Pitch command, pitch experimental response and pitch simulation response (one figure)
Voltage input to pitch rotor motor experiment and simulation results (one figure)
Explain any differences between the experimental and simulation results.
Yaw command, yaw experimental response and yaw simulation response (one figure)
Voltage input to yaw rotor motor experiment and simulation results (one figure)
Explain any differences between the experimental and simulation results.
Pitch command, pitch experimental response and pitch simulation response (one figure)
Yaw command, yaw experimental response and yaw simulation response (one figure)
Pitch rotor motor voltage experiment and simulation results (one figure)
Yaw rotor motor voltage experiment and simulation results (one figure)
Explain any differences between the experimental and simulation results.
Pitch command, pitch experimental response and pitch simulation response (one figure)
Yaw command, yaw experimental response and yaw simulation response (one figure)
Pitch rotor motor voltage experiment and simulation results (one figure)
Yaw rotor motor voltage experiment and simulation results (one figure)
Explain any differences between the experimental and simulation results.
How does introducing feedforward gains affect the response of system? (i.e. compare pitch and yaw response without feedforward control with the responses with feedforward).
Did your controller successfully meet the specifications while running on the Quanser Aero hardware? If not, why?
Implement yaw PD controller using the gains tested in Step 3 of the section under in .
Set the feedforward gains to the values in Step 1 of the section under in .
Note: Some results require simulation response. This would require running a simulation using your SIMULINK model from using the parameter values determined in . The command input will be identical to the step input implemented during the experiment.
Plot and compare the experimental results obtained for the with the corresponding :
Plot and compare the experimental results obtained for the with the corresponding :
Plot and compare the experimental results obtained for the with the corresponding :
Plot and compare the experimental results obtained for the with the corresponding :