aboutsummaryrefslogtreecommitdiff
path: root/include/libsurvive/survive.h
diff options
context:
space:
mode:
authorMichael Turvey <mwturvey@users.noreply.github.com>2018-01-05 04:12:26 -0700
committerGitHub <noreply@github.com>2018-01-05 04:12:26 -0700
commit3c64031e671e14eb3baf90ec12cfaa8c0ecb5eff (patch)
treee5fea4c0e03d09122ac90de0f28617f3b62326e6 /include/libsurvive/survive.h
parent98d62e595b90a76ecd6d4f87e95e5cc6af45a4ce (diff)
parented85661121c3ed8769a69d059fd3162aec33c6fe (diff)
downloadlibsurvive-3c64031e671e14eb3baf90ec12cfaa8c0ecb5eff.tar.gz
libsurvive-3c64031e671e14eb3baf90ec12cfaa8c0ecb5eff.tar.bz2
Merge pull request #91 from mwturvey/MakeTrackingGood
Provide standard way for posers to report pose output
Diffstat (limited to 'include/libsurvive/survive.h')
-rw-r--r--include/libsurvive/survive.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/libsurvive/survive.h b/include/libsurvive/survive.h
index 0cfab1f..4821e63 100644
--- a/include/libsurvive/survive.h
+++ b/include/libsurvive/survive.h
@@ -129,6 +129,7 @@ struct SurviveContext
imu_process_func imuproc;
angle_process_func angleproc;
button_process_func buttonproc;
+ raw_pose_func rawposeproc;
struct config_group* global_config_values;
struct config_group* lh_config; //lighthouse configs
@@ -163,7 +164,8 @@ void survive_install_error_fn( SurviveContext * ctx, text_feedback_func fbp );
void survive_install_light_fn( SurviveContext * ctx, light_process_func fbp );
void survive_install_imu_fn( SurviveContext * ctx, imu_process_func fbp );
void survive_install_angle_fn( SurviveContext * ctx, angle_process_func fbp );
-void survive_install_button_fn( SurviveContext * ctx, button_process_func fbp );
+void survive_install_button_fn(SurviveContext * ctx, button_process_func fbp);
+void survive_install_raw_pose_fn(SurviveContext * ctx, raw_pose_func fbp);
void survive_close( SurviveContext * ctx );
int survive_poll( SurviveContext * ctx );
@@ -190,6 +192,7 @@ void survive_default_light_process( SurviveObject * so, int sensor_id, int acode
void survive_default_imu_process( SurviveObject * so, int mode, FLT * accelgyro, uint32_t timecode, int id );
void survive_default_angle_process( SurviveObject * so, int sensor_id, int acode, uint32_t timecode, FLT length, FLT angle, uint32_t lh );
void survive_default_button_process(SurviveObject * so, uint8_t eventType, uint8_t buttonId, uint8_t axis1Id, uint16_t axis1Val, uint8_t axis2Id, uint16_t axis2Val);
+void survive_default_raw_pose_process(SurviveObject * so, uint8_t lighthouse, FLT *position, FLT *quaternion);
////////////////////// Survive Drivers ////////////////////////////