Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display SlimeVR Tracker Battery Life #41

Merged
merged 12 commits into from
Jun 5, 2023
Merged

Display SlimeVR Tracker Battery Life #41

merged 12 commits into from
Jun 5, 2023

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.

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.
src/VRDriver.cpp Show resolved Hide resolved
@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants