Just thought of one more example. We also have an accelerometer class that does the integration (in fact double integration) to get velocity and displacement. This may be a better example because it's for WindRiver and it also contains the calibration code.
http://proj.titanrobotics.net/hg/Frc...lib/TrcAccel.h