3 cd $1 2> /dev/null 1>&2
5 SIGMA_BOTH="-M 2 -H 6 -A 2"
6 SIGMA_BARO="-M 2 -H 6 -A 2"
7 SIGMA_ACCEL="-M 2 -H 4 -A 4"
8 SIGMA_BOTH_NOISY_ACCEL="-M 2 -H 6 -A 3"
10 echo '#if NOISY_ACCEL'
12 echo '/* TeleMetrum v1.0 boards have noisy accelerometer values'
13 echo ' * increase the sigma value for accel data to compensate.'
14 echo ' * This improves the accuracy of apogee detection.'
18 nickle kalman.5c -p AO_BOTH -c both -t 0.01 $SIGMA_BOTH_NOISY_ACCEL
19 nickle kalman.5c -p AO_BOTH -c both -t 0.1 $SIGMA_BOTH_NOISY_ACCEL
20 nickle kalman.5c -p AO_BOTH -c both -t 1 $SIGMA_BOTH_NOISY_ACCEL
24 echo '#ifndef AO_BOTH_K00_100'
27 nickle kalman.5c -p AO_BOTH -c both -t 0.01 $SIGMA_BOTH
28 nickle kalman.5c -p AO_BOTH -c both -t 0.1 $SIGMA_BOTH
29 nickle kalman.5c -p AO_BOTH -c both -t 1 $SIGMA_BOTH
34 nickle kalman.5c -p AO_ACCEL -c accel -t 0.01 $SIGMA_ACCEL
35 nickle kalman.5c -p AO_ACCEL -c accel -t 0.1 $SIGMA_ACCEL
36 nickle kalman.5c -p AO_ACCEL -c accel -t 1 $SIGMA_ACCEL
38 nickle kalman.5c -p AO_BARO -c baro -t 0.01 $SIGMA_BARO
39 nickle kalman.5c -p AO_BARO -c baro -t 0.1 $SIGMA_BARO
40 nickle kalman.5c -p AO_BARO -c baro -t 1 $SIGMA_BARO