Tracking Distance on one Axis with an Accelerometer

Well it is designed to follow that general trajectory but not roll and to adjust the pitch to hit where it needs to hit so i can just shoot at 45 degrees every time and hit different distances (within reason) see pic for what I am thinking.


Red is actually the adjusted path green is the ballistic path