altoslib: Make AltosReplayReader start synchronously enough to track states
authorKeith Packard <keithp@keithp.com>
Fri, 26 May 2017 07:51:37 +0000 (00:51 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 26 May 2017 07:51:37 +0000 (00:51 -0700)
commitaa0300f11fe5b7f1d3e548e29dc809b803aa1f7a
tree2d35e4fea08964911f3a7159511ce4d9e4f0c439
parent2e82051a6aaaccf1e8a242f9c8141e4167e652d2
altoslib: Make AltosReplayReader start synchronously enough to track states

The Altos UI needs to see 'pad' state and then 'boost' state so that
it will automatically switch tabs during the flight. When reading from
eeprom files, the only way that is going to happen is if the reader
thread waits until the UI has definitely seen 'pad' state, which we do
by simply delaying the reader thread until after that has happened.

Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosReplayReader.java
altoslib/AltosState.java
altosui/AltosFlightUI.java