Skip to content

Commit

Permalink
remove the /100 to the haptic scale so 1 is normal
Browse files Browse the repository at this point in the history
remove the /100 to the haptic scale so 1 is normal
  • Loading branch information
mm0zct committed Jun 23, 2023
1 parent a2c5784 commit 4506dc4
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 4 deletions.
Binary file modified ReleasePackage/OculusTouchLink.7z
Binary file not shown.
24 changes: 24 additions & 0 deletions ReleasePackage/OculusTouchLink/config.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
31
0
10
oculus_link
Oculus_link
0
0
0
64
100
0
1
0
0
0
0
0
1
0
0
0
0
0
0
Binary file modified ReleasePackage/OculusTouchLink/ovr_test.exe
Binary file not shown.
Binary file modified ovr_test/.vs/ovr_test/v16/.suo
Binary file not shown.
Binary file modified ovr_test/.vs/ovr_test/v16/Browse.VC.db
Binary file not shown.
6 changes: 3 additions & 3 deletions ovr_test/ovr_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void main_loop(ovrSession mSession, HANDLE comm_mutex, shared_buffer* comm_buffe
if ((ovr_pose.ThePose.Orientation.x != 0) && (ovr_pose.ThePose.Orientation.y != 0) && (ovr_pose.ThePose.Orientation.z != 0)){
comm_buffer->object_poses[i] = ovr_pose;
}
if ((frame_count & 0x7FF) == 0) {
if (0){//(frame_count & 0x7FF) == 0) {
std::cout.precision(4);

std::cout << "Object" << i << std::dec << " x " <<
Expand Down Expand Up @@ -125,7 +125,7 @@ void main_loop(ovrSession mSession, HANDLE comm_mutex, shared_buffer* comm_buffe
#endif
}
ReleaseMutex(comm_mutex);
if ((frame_count & 0x7FF) == 0) {
if (0){//(frame_count & 0x7FF) == 0) {
std::cout.precision(4);

std::cout << (i == 0 ? "lhand" : "rhand") << " 0x" << std::fixed <<
Expand Down Expand Up @@ -533,7 +533,7 @@ void add_vibration(bool isRightHand, float frequency, float amplitude, float dur

if ((amplitude <= 0) || (frequency <= 0) /*|| (duration <= 0)*/) return;
if (frequency > 1.0)frequency = 1.0;
float amp = amplitude/100.0f;
float amp = amplitude;
float freq = frequency * 320.0f;
uint32_t requested_duration = duration * 160; // 320 Hz processing rate? seems to be 160
//if (requested_duration < 2) requested_duration = 2;
Expand Down
2 changes: 1 addition & 1 deletion ovr_test/x64/Release/config.dat
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Oculus_link
0
0
64
1
100
0
1
0
Expand Down
Binary file modified ovr_test/x64/Release/ovr_test.exe
Binary file not shown.

0 comments on commit 4506dc4

Please sign in to comment.