The invention discloses a course angle measuring method and
electrical equipment. The course angle measuring method comprises the following steps: selecting a
vertical plane for fixing the UWB
base station module; a UWB tag module is fixed on a
rigid body with a course angle to be measured, and the UWB tag module is integrated with an
inertial measurement unit; establishing a world coordinate
system according to the position O1 of the UWB
base station module, and establishing a
label coordinate
system according to the position O2 of the UWB
label module; the UWB
base station module carries out
distance measurement and angle measurement on the UWB tag module to obtain a
coordinate vector # imgabs0 # of the UWB tag module in a world coordinate
system, the UWB tag module carries out
distance measurement and angle measurement on the UWB base
station module to obtain a coordinate reverse vector # imgabs1 # of the UWB base
station module in a tag coordinate system, and an orthogonal vector of a gravity vector and a
coordinate vector # imgabs2 # of the UWB base
station module is calculated; and an orthogonal vector of the gravity vector and a
coordinate vector # imgabs3 # of the UWB tag module. Obtaining a
rotation matrix from the world coordinate system to the
label coordinate system based on the two orthogonal vectors; obtaining a course angle based on the
rotation matrix. The method is low in cost and accurate.