On Thu, 28 Jul 2011 14:07:01 -0700
Keith Packard <[email protected]> wrote:

> I suspect the easiest way to make that work would be to hack the ADC
> code to just flip the data around as it's coming out of the
> sensor. There are lots of assumptions in the flight code about the
> sign of acceleration changes and while possible to fix those, that
> seems a bit more error prone.


I was thinking that as well.  I think all that would need to be done in
ao_flight() is:

        ao_raw_accel = 0xffff - ao_adc->accel;

What do you think?

-- 

~Don
------------
_______________________________________________
altusmetrum mailing list
[email protected]
http://lists.gag.com/mailman/listinfo/altusmetrum

Reply via email to