ICFP Programming Contest 2009
I gave it a try at this year’s contest (http://icfpcontest.org/) and although it was a failed attempt it was a very interesting problem.
It is given a virtual machine specification and a set of binaries that runs different simulation scenarios involving satellites orbiting earth. For each scenario the contestant needs to provide a set of instructions to control the satellite thrusters and achieve the designated goals.
The first case involves performing a Hohmann transfer orbit. That is, transferring a satellite from one orbit to another using the thrusters only two times.
Apparently there are some rounding errors in my implementation since even thought the trajectories appear correct to the eye (see picture above) the satellite doesn’t hold within the 1000 meters of the target orbit required to scored any points.
Here is the link to the code, which contains the virtual machine implementation and the attempt to perform the Hohmann maneuver: satellites.fs
blog comments powered by Disqus