修改头部姿态数值

This commit is contained in:
limengnan 2025-09-10 18:44:31 +08:00
parent 0a417ce4f5
commit 2d852d43dd

View File

@ -1235,9 +1235,7 @@ const isTrackingMaxValues = ref(false)
function handleIMUData(data) {
try {
if (!data) return
headlist.value.rotation = data.rotation //
headlist.value.tilt = data.tilt //
headlist.value.pitch = data.pitch //
//
// 1) { rotation, tilt, pitch }
// 2) { head_pose: { rotation, tilt, pitch } }
@ -1248,7 +1246,9 @@ function handleIMUData(data) {
if (rotation === undefined || tilt === undefined || pitch === undefined) {
return
}
headlist.value.rotation = rotation //
headlist.value.tilt = tilt //
headlist.value.pitch = pitch //
const now = (typeof performance !== 'undefined' && performance.now) ? performance.now() : Date.now()
// DOM
@ -2480,7 +2480,7 @@ function routerClick(){
.gauge-group-box-text2 {
font-size: 24px;
color: #ff9900;
color: #30F3FF;
font-weight: 700;
}