aboutsummaryrefslogtreecommitdiff
path: root/src/survive_cal.c
diff options
context:
space:
mode:
authorMike Turvey <mturvey6@gmail.com>2017-12-22 23:06:26 -0700
committerMike Turvey <mturvey6@gmail.com>2017-12-22 23:06:26 -0700
commit283a395d8d63e4532173f9497f2ea8cd154a4758 (patch)
tree32620cbf5b9bbc3476af6fbdc018f82946b4629d /src/survive_cal.c
parent9dfa5463a83d5219b4947a36500ae097101b6912 (diff)
downloadlibsurvive-283a395d8d63e4532173f9497f2ea8cd154a4758.tar.gz
libsurvive-283a395d8d63e4532173f9497f2ea8cd154a4758.tar.bz2
Configuration Changes
Added some config options. Changed a few defaults. Better output from PoserTurveyTori. Hopefully, this will make it easier for someone new to get up and running more easily.
Diffstat (limited to 'src/survive_cal.c')
-rwxr-xr-xsrc/survive_cal.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/survive_cal.c b/src/survive_cal.c
index 0dbadd3..87d8c0b 100755
--- a/src/survive_cal.c
+++ b/src/survive_cal.c
@@ -124,8 +124,11 @@ void survive_cal_install( struct SurviveContext * ctx )
cd->numPoseObjects = 0;
- const char * RequiredTrackersForCal = config_read_str( ctx->global_config_values, "RequiredTrackersForCal", "HMD,WM0,WM1" );
- const uint32_t AllowAllTrackersForCal = config_read_uint32( ctx->global_config_values, "AllowAllTrackersForCal", 0 );
+ // setting the required trackers for calibration to be permissive to make it easier for a newbie to start--
+ // basically, libsurvive will detect whatever they have plugged in and start using that.
+// const char * RequiredTrackersForCal = config_read_str(ctx->global_config_values, "RequiredTrackersForCal", "HMD,WM0,WM1");
+ const char * RequiredTrackersForCal = config_read_str(ctx->global_config_values, "RequiredTrackersForCal", "");
+ const uint32_t AllowAllTrackersForCal = config_read_uint32( ctx->global_config_values, "AllowAllTrackersForCal", 1 );
size_t requiredTrackersFound = 0;
for (int j=0; j < ctx->objs_ct; j++)
@@ -169,7 +172,8 @@ void survive_cal_install( struct SurviveContext * ctx )
}
const char * DriverName;
- const char * PreferredPoser = config_read_str( ctx->global_config_values, "ConfigPoser", "PoserCharlesSlow" );
+// const char * PreferredPoser = config_read_str(ctx->global_config_values, "ConfigPoser", "PoserCharlesSlow");
+ const char * PreferredPoser = config_read_str(ctx->global_config_values, "ConfigPoser", "PoserTurveyTori");
PoserCB PreferredPoserCB = 0;
const char * FirstPoser = 0;
printf( "Available posers:\n" );