We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 505371b commit d5aa4e4Copy full SHA for d5aa4e4
teleoperation/basestation_gui/frontend/src/utils.ts
@@ -33,7 +33,7 @@ const convertDMS = function(coordinate, format: string) {
33
const quaternionToMapAngle = function(quaternion: number[]): number {
34
const [qx, qy, qz, qw] = quaternion
35
const yaw = Math.atan2(2 * (qw * qz + qx * qy), 1 - 2 * (qy * qy + qz * qz))
36
- return (yaw) * (180 / Math.PI)
+ return (yaw + Math.PI / 2) * (180 / Math.PI)
37
}
38
39
export { convertDMS, quaternionToMapAngle }
0 commit comments