Question: Please Make Your Own Spacecraft MatLab Code or any other programming code In this problem, you will learn how to make your own code to

Please Make Your Own Spacecraft MatLab Code or any other programming code In this problem, you will learn how to make your own code to simulate a spacecraft around the Earth1 It will become the framework on which you will build thorough-out the semester.

Part A. Write a script EOM.m which reflect the orbital dynamics of the two-body problem along with external perturbation forces.

Part B. Write a script which calls EOM through the function ode45 in order to simulate a spacecraft around Earth, given initial conditions. This should be very similar to the code that you began to play with.

Part C. Create functions Rel2ECI.m and ECI2Rel.m that can transform between a relative frame and an inertial frame, and vis versa.

Part D. Create a linear propagator that simulate the relative equations of motion.

Part E. Pick a couple initial conditions and compare and contrast linear relative propagation and nonlinear ECI propagation over a couple of orbits. Comment on the differences and why they might occur.

Part F. Now add in a propulsion force from a thruster with an effective thrust of 1 N. Let the force act in the velocity direction of the spacecraft. Start on a circular orbit of 42169 km and let the thruster be on for 1 hour. Simulate the system and describe what happens to the orbit

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!