Skip to content

Conversation

@NWBx01
Copy link
Contributor

@NWBx01 NWBx01 commented Apr 11, 2023

Adds support for receiving tracker battery info from the SlimeVR Server.

  • Trackers that do not have battery info are not affected.
  • Trackers that do have battery info will report their battery percentage, as well as whether they're charging or not.
  • Works for owoTrack devices (However, these will not display whether they're charging, as owoTrack does not send battery voltage info)

This depends on another pull request. (SlimeVR/SlimeVR-Server#668)

NWBx01 and others added 9 commits January 5, 2023 17:28
Added SlimeVR-specific tracker icons to be used, removed old icons which were unused.
Co-authored-by: Butterscotch! <bscotchvanilla@gmail.com>
Added support for trackers reporting:
- Battery percentage
- When charging (Battery voltage >=4.2V; guesstimate, maybe needs to be changed)
@kitlith
Copy link
Member

kitlith commented Apr 21, 2023

The only thing battery voltage is used for here is for detecting if the tracker is charging or not, correct? I'd rather kick charging detection into firmware (or at least server for now) (i.e. the device reports the right thing depending on the setup) and just receive a boolean is_charging in driver.

NWBx01 added 2 commits April 22, 2023 12:42
Replaced battery_voltage with is_charging, and added sending HMD battery to server.
SteamVR applies a blue-green gradient to tracker icons at runtime and creates a ".b4bfb144" version if one is not present. Blue-green ".b4bfb144" tracker icons do already exist and therefore these are used instead of SteamVR generating redundant ".b4bfb144.b4bfb144" icons.
@Eirenliel Eirenliel merged commit ce80726 into SlimeVR:main Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: Normal The default priority Type: Enhancement Adds or improves a feature

4 participants