You can try a simple low pass filter. I think LabView has VIs for these built in.
A simple one-pole IIR low pass filter in pseudocode could be:
Code:
double acceleration_filtered = 0.0;
double gain = (constant on the range 0 to 1);
while( robot_is_on )
{
double acceleration = read_accelerometer();
acceleration_filtered = (gain)*acceleration + (1.0 - gain)*acceleration_filtered;
// Do stuff with our filtered acceleration value...
}
Setting gain to a small value will smooth your reading significantly. Setting it to a higher number will smooth less.