Reset point drifts slowly

Trinus Forum Forums Trinus PSVR Reset point drifts slowly

Tagged: , , ,

This topic contains 0 replies, has 1 voice, and was last updated by Avatar cheater 1 month ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #8307
    Avatar
    cheater
    Participant

    Normally when you press the reset button on the headset it should reset the view to -180, 0, 0. But after 1.5 hours of watching a bluray, i noticed that when I press reset all it’ll actually go to -194, 0, 0. And then after another half hour it was -197, 0, 0. I think there’s a bug here and this is what happens. You probably have some code that looks like this:

    drift_correction = 0;
    x = -180;
    while (True) {
    ...
    drift_correction += drift_factor; // drift_factor comes from slider in the gui
    if (reset_button_clicked) {
        x = -180;
    }
    x_corrected = x + drift_correction; // final x output that shows up in the gui
    }

    whereas what you should be doing is:

    if (reset_button_clicked) {
        x = -180;
        drift_correction = 0;
    }
    • This topic was modified 1 month ago by Avatar cheater. Reason: typo
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.