Skip to content

Commit

Permalink
Gave credits to Peter S. Hollander for finding out the correct format of
Browse files Browse the repository at this point in the history
the USB feature reports.
Improved the example.
  • Loading branch information
matzman666 committed Apr 8, 2017
1 parent 3a658c0 commit 8fc7d4b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/ViveTracker/ViveTracker.ino
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ void loop() {
uint16_t batteryLevel = 0;
tracker.setTrackerStatus(buttons, padX, padY, trigger, batteryLevel);
}
delay(300);
delay(10); // According to HTC's documentation the interval to send data should be at least 10 ms.
}
7 changes: 7 additions & 0 deletions src/ViveTrackerController.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@
#define VIVETRACKER_BUTTON_PADTOUCHED (1 << 5)


/*
* The format of the USB HID feature reports is unfortunately not correct in HTC's documentation.
* Fortunately Peter S. Hollander was able to find out the correct format of the feature reports,
* and he was kind enough to share the details on his blog:
* http://www.talariavr.com/blog/vive-tracker-initial-documentation/
*/

/**
* \struct Vive Tracker Feature Report 0xB3
*/
Expand Down

0 comments on commit 8fc7d4b

Please sign in to comment.