forked from andybarry/simflight
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds another way to find the trim condition, works on LQR controller …
…at that fixed point.
- Loading branch information
Showing
2 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
% find trim condition for the aircraft using fmincon | ||
|
||
|
||
|
||
Ceq = @(in) tbsc_model_less_vars(in(1:2), in(3:5)); | ||
|
||
|
||
x = lsqnonlin(Ceq, [0; 20; 0; 0; 3.5]) | ||
|
||
% | ||
% A = []; | ||
% b = []; | ||
% Aeq = []; | ||
% beq = []; | ||
% lb = []; | ||
% ub = []; | ||
% | ||
% | ||
% sol = fmincon([], [0; 20; 0; 0; 3.5], A, b, Aeq, beq, lb, ub, @fmincon_nonlincon); | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
parameters = { 1.92, 1.84, 2.41, 0.48, 0.57 }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters