diff options
author | Keith Packard <keithp@keithp.com> | 2011-03-21 19:59:27 +0900 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-03-21 19:59:27 +0900 |
commit | 20427ae4965f756aac0cedc5179a1c45b9a781f2 (patch) | |
tree | b0b54b98901db5fe9f2b643f355e0302e18a3ff5 /src/make-kalman | |
parent | ca3f03ef5c09446bebf0f5734f36a0248c457b1d (diff) |
altos: Add nickle kalman implementation.
This generates the constants needed to implement Kalman filtering in
the flight firmware.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/make-kalman')
-rw-r--r-- | src/make-kalman | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/make-kalman b/src/make-kalman new file mode 100644 index 00000000..80157c6b --- /dev/null +++ b/src/make-kalman @@ -0,0 +1,18 @@ +#!/bin/sh + +cd ../kalman + +SIGMA_ACCEL_MODEL=1 +SIGMA_BARO_MEASURE=8 +SIGMA_ACCEL_MEASURE=4 + +SIGMA="-M $SIGMA_ACCEL_MODEL -H $SIGMA_BARO_MEASURE -A $SIGMA_ACCEL_MEASURE" + +nickle kalman.5c -p AO_BOTH -c both -t 0.01 $SIGMA +nickle kalman.5c -p AO_BOTH -c both -t 0.1 $SIGMA + +nickle kalman.5c -p AO_ACCEL -c accel -t 0.01 $SIGMA +nickle kalman.5c -p AO_ACCEL -c accel -t 0.1 $SIGMA + +nickle kalman.5c -p AO_BARO -c baro -t 0.01 $SIGMA +nickle kalman.5c -p AO_BARO -c baro -t 0.1 $SIGMA |