An unknown failure has knocked out both the primary and secondary flight computer. The vessel is tumbling in open space. You can only access streaming system logs and send low-level commands to control the ship.
The spacecraft's sole active link is a 10Hz raw system log feed emitting real-time sensor logs, and an open telecommand channel accepting low-level API commands to ship subsystems including thrusters, valves, and reaction wheels.
Your job is to build an autonomous, intelligent flight computer in Python using the Google Antigravity SDK and Gemini 3.8 Flash to parse logs, steady the craft, and complete each mission.
The system logs are unstructured text. Extract gyro rates, telemetry, system messages, and more. Expect the unexpected...
Your agent decides what to do to achieve the mission objectives, based on the system logs.
def flight_computer(telemetry_stream, command_channel):
# Your code goes here
Send commands to individual spaceship subsystems such as thrusters and reaction wheels.