Program to manually calibrate the accelerometer on the SPOT eDemo sensor board.

The SPOT needs to be rotated to 6 different positions, two for each axis, and
button1 must be pressed when it is in each one.

The LEDs show red for each axis that still needs to be calibrated, and green
for those axis directions that have already been measured. When the SPOT is
rotated to be aligned to an unmeasured orientation the LED for that axis will
be displayed as white.

The calibration process is done twice. The second time uses the values from
the first to tighten the constraints on what is an acceptable orientation.

After the calibration process the accelerometer performs a self test. If it 
passes then the calibration values, will be stored as persistent properties
in the EDemoBoard Flash memory:

    LIS3L02AQAccelerometer.ACCELEROMETER_ZERO_OFFSETS_PROPERTY and
    LIS3L02AQAccelerometer.ACCELEROMETER_GAINS_PROPERTY

that are read in when the SPOT is started up.

author: Ron Goldman
date: March 12, 2007
