aboutsummaryrefslogtreecommitdiff
path: root/src/survive_sensor_activations.c
diff options
context:
space:
mode:
authordpeter99 <dpeter99@gmail.com>2018-03-28 17:36:09 +0200
committerdpeter99 <dpeter99@gmail.com>2018-03-28 17:36:09 +0200
commit6f7759314baf66f69fa7a335a1f17c65e90661f2 (patch)
tree11a0e499a0ea83a5b7aa645ba05e5a87f6cc5070 /src/survive_sensor_activations.c
parentef18541ac2e1e97de9f04f132ac7b2b1ba21e515 (diff)
parent4c373617220aca69a4acb7a32c12457a057f4e48 (diff)
downloadlibsurvive-6f7759314baf66f69fa7a335a1f17c65e90661f2.tar.gz
libsurvive-6f7759314baf66f69fa7a335a1f17c65e90661f2.tar.bz2
Merge branch 'master' of https://github.com/dpeter99/libsurvive
Diffstat (limited to 'src/survive_sensor_activations.c')
-rw-r--r--src/survive_sensor_activations.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/survive_sensor_activations.c b/src/survive_sensor_activations.c
index 4d1801c..e42b50e 100644
--- a/src/survive_sensor_activations.c
+++ b/src/survive_sensor_activations.c
@@ -21,9 +21,11 @@ void SurviveSensorActivations_add(SurviveSensorActivations *self, struct PoserDa
int axis = (lightData->acode & 1);
uint32_t *data_timecode = &self->timecode[lightData->sensor_id][lightData->lh][axis];
FLT *angle = &self->angles[lightData->sensor_id][lightData->lh][axis];
+ uint32_t *length = &self->lengths[lightData->sensor_id][lightData->lh][axis];
*angle = lightData->angle;
*data_timecode = lightData->timecode;
+ *length = lightData->length * 48000000;
}
-uint32_t SurviveSensorActivations_default_tolerance = (uint32_t)(48000000 /*mhz*/ * (16.7 * 2 /*ms*/) / 1000); \ No newline at end of file
+uint32_t SurviveSensorActivations_default_tolerance = (uint32_t)(48000000 /*mhz*/ * (16.7 * 2 /*ms*/) / 1000);