diff options
author | Justin Berger <j.david.berger@gmail.com> | 2018-03-22 09:51:01 -0600 |
---|---|---|
committer | Justin Berger <j.david.berger@gmail.com> | 2018-03-22 09:53:51 -0600 |
commit | 3a0c6bbd603e9420ef2d8eaf9e3b71f7ddd6538a (patch) | |
tree | 8c214b1c4096bb9fc98388b7a20ca7c3310b5684 /include/libsurvive/survive.h | |
parent | 86129fa6b1b1421babad0ecb03369ae88d2cabdb (diff) | |
download | libsurvive-3a0c6bbd603e9420ef2d8eaf9e3b71f7ddd6538a.tar.gz libsurvive-3a0c6bbd603e9420ef2d8eaf9e3b71f7ddd6538a.tar.bz2 |
Made disambiguator configurable
Diffstat (limited to 'include/libsurvive/survive.h')
-rw-r--r-- | include/libsurvive/survive.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/include/libsurvive/survive.h b/include/libsurvive/survive.h index 747d076..cb144bd 100644 --- a/include/libsurvive/survive.h +++ b/include/libsurvive/survive.h @@ -170,6 +170,7 @@ struct SurviveContext raw_pose_func rawposeproc; lighthouse_pose_func lighthouseposeproc; htc_config_func configfunction; + handle_lightcap_func lightcapfunction; struct config_group* global_config_values; struct config_group* lh_config; //lighthouse configs @@ -286,17 +287,6 @@ void RegisterDriver(const char * name, void * data); int survive_add_object( SurviveContext * ctx, SurviveObject * obj ); void survive_add_driver( SurviveContext * ctx, void * payload, DeviceDriverCb poll, DeviceDriverCb close, DeviceDriverMagicCb magic ); -//For lightcap, etc. Don't change this structure at all. Regular vive is dependent on it being exactly as-is. -//When you write drivers, you can use this to send survive lightcap data. -typedef struct -{ - uint8_t sensor_id; - uint16_t length; - uint32_t timestamp; -} -LightcapElement; - - //This is the disambiguator function, for taking light timing and figuring out place-in-sweep for a given photodiode. void handle_lightcap( SurviveObject * so, LightcapElement * le ); |