adding waitForAngle function to LinearAccelerator