One or more rolling averages of accelerations over a sample period are
created. The one or more rolling averages of accelerations are measured
by an accelerometer over the sample period. A gravitational influence is
identified based upon the one or more rolling averages of accelerations.
A dominant axis is assigned based upon the gravitational influence.