modified device code; added support for deltaAngle in Gyro code