Game Development Reference
Figure 21-3. Acceleration graph showing clipping
There are several different ways to handle data clipping. One is to discard the data and
alert the user that he has exceeded the available range. Another is to attempt to recreate
the missing data. If you are recording the data for later processing, you can use both
segment 1 and segment 2 to fit the curve between the point at which the data began to
be clipped and the point in which meaningful data collection is resumed. This is highly
application dependent, and the curve used to fit the data will have to be matched to the
activity at hand. If you are recording the data for later processing, you can use both
segment 1 and segment 2 to give your data.
If you are attempting to process the signal in real time, you'll have only segment 1 to
work from. This could result in a discontinuity when meaningful data collection re‐
sumes, and you'll have to decide how to deal with that given the particulars of what you
are doing with the data.
Sensing rotation in three degrees of freedom amounts to sensing a rigid body's orien‐
tation and is a complex problem that cannot be fully resolved using only accelerometers.