13.07.2015 Views

An Integrated, Modular Simulation System for Education ... - Cal Poly

An Integrated, Modular Simulation System for Education ... - Cal Poly

An Integrated, Modular Simulation System for Education ... - Cal Poly

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

AppendixEuler Help File%***** euler.m% Given the transfer function 1/s+10 solving the differential equation,% this routine returns the values at the next time ste% In this version we use the euler method% to integrate.%***** integrate to get current state% dt=time increment% Theta = pitch angle% deltaE = elevator angleDegToRad = 0.01745329tFinal = 1;dt=0.01;OldTheta = 0;deltaE =25*DegToRad;t = 0;index=1;while t

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!