Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
JAHRSCalibration.sh
Go to the documentation of this file.
1#!/usr/bin/env zsh
2#
3#
4# \author mdejong
5#
6version=1.0
7script=${0##*/}
8
9if [ -z $JPP_DIR ]; then
10 echo "Variable JPP_DIR undefined."
11 exit
12fi
13
14source $JPP_DIR/setenv.sh $JPP_DIR
15
16set_variable: DEBUG COMPASS_DEBUG 2
17set_variable: WORKDIR COMPASS_WORKDIR ./
18
19if do_usage $*; then
20 usage "$script <detector identifier>"\
21 "\nAuxiliary script to download compass calibration data from database."
22fi
23
24if (( $# != 1 )); then
25 fatal "Wrong number of parameters."
26fi
27
28set_variable DETECTOR_ID $argv[1]
29set_variable AHRS_CALIBRATION_FILE $WORKDIR/ahrs_calibration.txt
30
31JCookie.sh
32
33if [[ ! -f $AHRS_CALIBRATION_FILE ]]; then
34
35 JAHRSCalibration \
36 -D $DETECTOR_ID \
37 -o $AHRS_CALIBRATION_FILE \
38 -d $DEBUG
39fi