For real-time implementation for a device, I have theta which is the pitch angle and I have a built in accelerometer in the device. To get the angular acceleration of theta could I take the second derivative of theta or I have to take it from the accelerometer only?