diff options
author | Michael Turvey <mturvey6@gmail.com> | 2017-03-12 12:28:10 -0700 |
---|---|---|
committer | Michael Turvey <mturvey6@gmail.com> | 2017-03-12 12:28:10 -0700 |
commit | 121afb94493a7379ce39d76bffb61c898e6aebf0 (patch) | |
tree | e9abd71220f63e9a7ad55745131a25725e88e127 /src/survive_cal.c | |
parent | 0ed5073a47e9aad9f15db1adbaddd822871d981c (diff) | |
download | libsurvive-121afb94493a7379ce39d76bffb61c898e6aebf0.tar.gz libsurvive-121afb94493a7379ce39d76bffb61c898e6aebf0.tar.bz2 |
More changes to gracefully support a tracker
Diffstat (limited to 'src/survive_cal.c')
-rwxr-xr-x[-rw-r--r--] | src/survive_cal.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/survive_cal.c b/src/survive_cal.c index 06914eb..ad518b3 100644..100755 --- a/src/survive_cal.c +++ b/src/survive_cal.c @@ -104,9 +104,15 @@ void survive_cal_install( struct SurviveContext * ctx ) cd->hmd = survive_get_so_by_name( ctx, "HMD" ); if( !cd->hmd ) { - SV_ERROR( "Error: cannot find any devices labeled HMD. Required for calibration" ); - free( cd ); - return; + cd->hmd = survive_get_so_by_name( ctx, "TR0" ); + + if( !cd->hmd ) + { + SV_ERROR( "Error: cannot find any devices labeled HMD. Required for calibration" ); + free( cd ); + return; + } + SV_INFO( "HMD not found, calibrating using Tracker" ); } ootx_packet_clbk = ootx_packet_clbk_d; |