altos: Compute initial rotation from vertical
authorKeith Packard <keithp@keithp.com>
Mon, 28 Oct 2013 06:35:54 +0000 (23:35 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 28 Oct 2013 06:35:54 +0000 (23:35 -0700)
commit06b0c1b768a7d3eae57e66bc9aea25db49f9ea8a
treecba41e2d442a86ab7f22685fc6da86a2d7b22173
parentcdbe8ce33e4a75e85caf07538ed7e997f462b758
altos: Compute initial rotation from vertical

This initializes the rotation with the angle from vertical, rather
than simply recording the off-angle vector. Doing this allows us to
accurately track the true orientation of the rocket, instead of just
the offset from the initial non-vertical orientation.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/core/ao_sample.c