It would be easier to help if you gave more feedback about which programming language your team is using. This is a link to the WPI tutorials for accelerometers. The built in about half way down the page.
https://wpilib.screenstepslive.com/s...eter_interface