pioneerspacesim/pioneer — pull request #789 by robn (2011-11-10 05:08:41+00:00)
Title: Autopilot v2

@jaj22's rewritten autopilot. Needs testing in lots of different situations:

```
08:24 < robn> how should it be tested? just try a few different scenarios and make sure it appears to do the right thing?

08:25 < JohnJ> Well, different people fly in different ways to what I do :-)
08:25 < JohnJ> I tested every sol station at various time accelerations with an Eagle.
08:25 < JohnJ> And some orbits.
08:27 < JohnJ> I need to do some non-Eagle testing really, after clearing up the error reporting.
08:27 < JohnJ> But otherwise you're mostly looking for weird systems where it breaks.

08:32 < JohnJ> Oh yeah, any general "feel" complaints about how the autopilot acts are welcome too.
08:32 < JohnJ> I get too used to things :-)
```

It has some error reporting stuff that needs hooking up. The basic gist is that when the autopilot completes its current command, it sets a message to note why it succeeded or failed. We need to call `Ship::AIMessage()` to get that code, and then output appropriate text to the message/scanner area. This message should also be exposed to Lua (presumably via `onAICompleted`).