In order to determine gyroscope and accelerometer bias in the surgical orientation device 14 and/or reference sensor device 16, the leg (with surgical orientation device 14 and/or reference sensor device 16 attached) can be moved by an operator or other means in such a way that sufficient rate and acceleration data is achieved for all axes.