An angular-velocity detector includes a first sensor, a second sensor, and
a controller. The first sensor is used for detecting motion around an
axis of a second direction perpendicular to a first direction. The second
sensor is used for detecting motion around an axis of the first
direction. The controller performs an operation that corrects an output
error caused by an angle of inclination of the second sensor by using a
first correction coefficient that is a ratio of a second amplitude to a
first amplitude. The first amplitude is amplitude of output value from
the first sensor when the angular-velocity detector is in first motion
around an axis of the second direction without second motion around an
axis of the first direction. The second amplitude is amplitude of output
value from the second sensor when the angular-velocity detector is in the
first motion without the second motion.