Collision Probability Calculation and Optimal Avoidance Control for Spacecraft.
This code package implements the algorithms from the course report "Collision Probability Calculation and Optimal Avoidance Control for Spacecraft".
Before running this program please install gpops tool box first: Run gpopsSetup.m to install gpops tool box to your matlab. (In gpops folder)
(In ECH267_Course_Project folder)
Run Step1_prob.m.
A plot of the collision probability before taking the strategy.
Run Step2_OptimalPosition.m
No plots output.
Run Step3_spacecraftMain.m
Five plots. (1)State X values vs time. (2)State Y values vs time. (3)State Z values vs time. (4)State Rs values vs time. (5)Control values vs time
Run Step4_ProbAfter.m
A plot of the collision probability after taking the avoidance strategy.