aboutsummaryrefslogtreecommitdiff
path: root/src/survive_process.c
diff options
context:
space:
mode:
authorMike Turvey <mturvey6@gmail.com>2017-03-23 00:25:25 -0700
committerMike Turvey <mturvey6@gmail.com>2017-03-23 00:25:25 -0700
commit472d05c2a356ec6d71669d67fb599e401a6f4a76 (patch)
tree696f032716f200c4bdfb4899b2b6ba928ad883c2 /src/survive_process.c
parente1818d84e1ab0ae217d8035f8a12398f06508059 (diff)
downloadlibsurvive-472d05c2a356ec6d71669d67fb599e401a6f4a76.tar.gz
libsurvive-472d05c2a356ec6d71669d67fb599e401a6f4a76.tar.bz2
Updated disambiguator. Solid OOTX
Diffstat (limited to 'src/survive_process.c')
-rw-r--r--src/survive_process.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/survive_process.c b/src/survive_process.c
index 8dc849a..6735f10 100644
--- a/src/survive_process.c
+++ b/src/survive_process.c
@@ -6,14 +6,14 @@
//XXX TODO: Once data is avialble in the context, use the stuff here to handle converting from time codes to
//proper angles, then from there perform the rest of the solution.
-void survive_default_light_process( SurviveObject * so, int sensor_id, int acode, int timeinsweep, uint32_t timecode, uint32_t length )
+void survive_default_light_process( SurviveObject * so, int sensor_id, int acode, int timeinsweep, uint32_t timecode, uint32_t length, int lh)
{
SurviveContext * ctx = so->ctx;
- int base_station = acode >> 2;
+ int base_station = lh;
int axis = acode & 1;
if( ctx->calptr )
{
- survive_cal_light( so, sensor_id, acode, timeinsweep, timecode, length );
+ survive_cal_light( so, sensor_id, acode, timeinsweep, timecode, length, lh);
}
if( base_station > NUM_LIGHTHOUSES ) return;