Yeah, I was fiddling with the geometry a bit, and without knowing the direction of gravity, I'm not sure you t have enough information to separate out gravity from any other accelerations. You'll have to obtain more information somehow.
What exactly are you trying to accomplish?