aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormwturvey <michael.w.turvey@intel.com>2017-03-28 10:18:29 -0700
committermwturvey <michael.w.turvey@intel.com>2017-03-28 10:18:29 -0700
commitdc7a75b9be6192a781737c617aab483289235d20 (patch)
tree60e2a9b51bc009124998628b62593ffba81fc9a6
parent6469d979046bf40c4ee76b89d3fc8311dcb16d33 (diff)
parentb3bdcdb838ed57986f359b2181a624bfd1acbbf1 (diff)
downloadlibsurvive-dc7a75b9be6192a781737c617aab483289235d20.tar.gz
libsurvive-dc7a75b9be6192a781737c617aab483289235d20.tar.bz2
Merge branch 'GetToriGoing' into ToriPoserHomeStretch
# Conflicts: # src/poser_turveytori.c
-rw-r--r--src/poser_turveytori.c2
-rw-r--r--src/survive_data.c10
-rwxr-xr-xsrc/survive_vive.c17
3 files changed, 10 insertions, 19 deletions
diff --git a/src/poser_turveytori.c b/src/poser_turveytori.c
index 5db2bc4..177a16a 100644
--- a/src/poser_turveytori.c
+++ b/src/poser_turveytori.c
@@ -1221,7 +1221,7 @@ int PoserTurveyTori( SurviveObject * so, PoserData * poserData )
pd->down[1] = pd->down[1] * 0.98 + 0.2 * tmpImu->accel[1];
pd->down[2] = pd->down[2] * 0.98 + 0.2 * tmpImu->accel[2];
}
- //printf( "IMU:%s (%f %f %f) (%f %f %f)\n", so->codename, imu->accel[0], imu->accel[1], imu->accel[2], imu->gyro[0], imu->gyro[1], imu->gyro[2] );
+ printf( "IMU:%s (%f %f %f) (%f %f %f)\n", so->codename, imu->accel[0], imu->accel[1], imu->accel[2], imu->gyro[0], imu->gyro[1], imu->gyro[2] );
break;
}
case POSERDATA_LIGHT:
diff --git a/src/survive_data.c b/src/survive_data.c
index 9447104..3eb5890 100644
--- a/src/survive_data.c
+++ b/src/survive_data.c
@@ -154,8 +154,14 @@ void handle_lightcap2_sync(SurviveObject * so, LightcapElement * le )
{
if (lcd->per_sweep.activeLighthouse != -1)
{
- // hmm, it appears we got two non-skip pulses at the same time. That should never happen
- fprintf(stderr, "WARNING: Two non-skip pulses received on the same cycle!\n");
+ static int pulseWarningCount=0;
+
+ if (pulseWarningCount < 5)
+ {
+ pulseWarningCount++;
+ // hmm, it appears we got two non-skip pulses at the same time. That should never happen
+ fprintf(stderr, "WARNING: Two non-skip pulses received on the same cycle!\n");
+ }
}
lcd->per_sweep.activeLighthouse = 1;
lcd->per_sweep.activeSweepStartTime = le->timestamp;
diff --git a/src/survive_vive.c b/src/survive_vive.c
index a5c731d..757fa11 100755
--- a/src/survive_vive.c
+++ b/src/survive_vive.c
@@ -1105,6 +1105,7 @@ void survive_data_cb( SurviveUSBInterface * si )
}
case USB_IF_LIGHTHOUSE:
case USB_IF_W_WATCHMAN1:
+ case USB_IF_TRACKER0:
{
int i;
//printf( "%d -> ", size );
@@ -1156,22 +1157,6 @@ void survive_data_cb( SurviveUSBInterface * si )
}
break;
}
- case USB_IF_TRACKER0:
- {
- SurviveObject * w = obj;
- if( id == 32 )
- {
- // TODO: Looks like this will need to be handle_tracker, since
- // it appears the interface is sufficiently different.
- // More work needd to reverse engineer it.
- //handle_wired_watchman( w, readdata, size);
- }
- else
- {
- SV_INFO( "Unknown tracker code %d\n", id );
- }
- break;
- }
case USB_IF_LIGHTCAP:
{
int i;