Skip to content

Latest commit

 

History

History
59 lines (42 loc) · 1.31 KB

README.md

File metadata and controls

59 lines (42 loc) · 1.31 KB

simflight

Simulation environment for flight systems, based on drake.

Dependancies

Examples

Running system identification using logs

  • Use do_pem.m for system identification of the model tbsc_model.m:
% Load dependancies
>> addpath('<path to Drake, for example: /home/user/drake/build/matlab/>')
>> addpath_drake

% Run PEM system identification
% Edit do_pem.m and fill in:
%   logfile_path
%   logfile_name

% Execute
>> do_pem

Generating a trajectory library

>> BuildTrajectoryLibrary

Use a trajectory library

>> lib.ListTrajectories

0: TI-straight-R-200
1: TI-climb-R-200
2: takeoff-no-throttle
3: TI-left-turn1-R-200
4: TI-right-turn1-R-200
5: TI-aggressive-left-turn2-R-200
6: TI-aggressive-right-turn2-R-200

>> lib.DrawTrajectories

>> lib.SimulateTrajectory(0)

    Simulating: "TI-straight-R-200" for 1 second(s) with default initial conditions...