On the Subject of Satellite Flight

We would have picked someone else, but our original pick is playing harmonica god knows where.

As part of the Keep Launching space program, you are tasked with launching a satellite for research. Considering your marvellous skill at not exploding, we are hoping that you may achieve similarly preferable results in this endeavour.

Initially, the module will display the target planet alongside its coordinate in a 10×10 hexagonal grid. In this state, the left and right buttons can be pressed to cycle through the list of other celestial bodies present, each being a planet or a star, and their corresponding coordinates.

The coordinates present are in the following coordinate system: a coordinate (x,y,z) denotes taking x steps right, y steps up-left, and z steps down-left from the origin, located at the center of the grid.

After noting down all bodies present on the grid, press the up button. The display will now show some information about the satellite and the current mission. In order, it shows: its current position, orientation, remaining fuel, elapsed time, and research progress.

To solve the module, reach the required research quota by facing the target planet from exactly one step away for the indicated number of timesteps. The research progress does not reset upon leaving the target planet, but will if the satellite crashes, leaves the grid, or the elapsed time exceeds the expected lifetime of the satellite. Unfortunately, funding for this mission has left us with rather brittle satellites.

The satellite starts at the origin, facing right, with a single unit of rightward velocity, and no angular velocity. The up button adds one unit of velocity in the direction the satellite is facing, while the left and right buttons add one unit of angular momentum in the counterclockwise or clockwise directions respectively. Each of these actions costs one unit of fuel. The middle button idles the satellite, neither costing fuel nor changing velocity or angular momentum. After each action or idle, the sum of acceleration is applied to velocity, then the new velocity and angular momentum is applied to the satellite. Then, one timestep will elapse.

Appendix: Useful figures

Gravity of a planet
Figure 1. Gravity of a planet
Gravity of a star
Figure 2. Gravity of a star
Figure 3. A highlightable map template