osc: remove headsetBattery parameter and change hmdBattery to float 0-1 to match OVR Toolkit (#278)

This commit is contained in:
Jay authored and GitHub committed 2025-12-01 02:42:53 +00:00
1 parent 6b4039a764
commit f54c5decb6
1 file changed
+1 -9
+1 -9
View File
@@ -131,15 +131,7 @@ impl OscSender {
let parameter = match device.role {
TrackedDeviceRole::None => continue,
TrackedDeviceRole::Hmd => {
// legacy OVR Toolkit style (int)
// as of 20 Nov 2024 OVR Toolkit uses int 0-100, but this may change in a future update.
//TODO: update this once their implementation matches their docs
self.send_message(
"/avatar/parameters/hmdBattery".into(),
vec![OscType::Int((level * 100.0f32).round() as i32)],
)?;
"headset"
"hmd"
}
TrackedDeviceRole::LeftHand => {
controller_count += 1;