Skip to content

Commit d5aa4e4

Browse files
committed
add offset for rover localization
1 parent 505371b commit d5aa4e4

File tree

1 file changed

+1
-1
lines changed
  • teleoperation/basestation_gui/frontend/src

1 file changed

+1
-1
lines changed

teleoperation/basestation_gui/frontend/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const convertDMS = function(coordinate, format: string) {
3333
const quaternionToMapAngle = function(quaternion: number[]): number {
3434
const [qx, qy, qz, qw] = quaternion
3535
const yaw = Math.atan2(2 * (qw * qz + qx * qy), 1 - 2 * (qy * qy + qz * qz))
36-
return (yaw) * (180 / Math.PI)
36+
return (yaw + Math.PI / 2) * (180 / Math.PI)
3737
}
3838

3939
export { convertDMS, quaternionToMapAngle }

0 commit comments

Comments
 (0)