From c5d07ca78a7d9a14c70b7bd6deaa7ccbbf48661c Mon Sep 17 00:00:00 2001 From: Justin Berger Date: Tue, 10 Apr 2018 09:07:40 -0600 Subject: Updated tool to proper cb sig --- tools/findoptimalconfig/findoptimalconfig.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/findoptimalconfig/findoptimalconfig.cc b/tools/findoptimalconfig/findoptimalconfig.cc index b94590f..265fd94 100644 --- a/tools/findoptimalconfig/findoptimalconfig.cc +++ b/tools/findoptimalconfig/findoptimalconfig.cc @@ -9,7 +9,6 @@ #include #include -#include struct SBAData { int last_acode = -1; @@ -93,8 +92,8 @@ void light_process(SurviveObject *so, int sensor_id, int acode, int timeinsweep, } SurvivePose lastPose = {}; -void raw_pose_process(SurviveObject *so, uint8_t lighthouse, SurvivePose *pose) { - survive_default_raw_pose_process(so, lighthouse, pose); +void pose_process(SurviveObject *so, uint32_t timecode, SurvivePose *pose) { + survive_default_raw_pose_process(so, timecode, pose); PlaybackData *d = (PlaybackData *)so->ctx->user_ptr; d->so = so; d->inputs.emplace_back(so, *pose); @@ -364,7 +363,7 @@ int main(int argc, char **argv) { auto ctx = survive_init(sizeof(args) / sizeof(args[0]), (char *const *)args); ctx->user_ptr = &data; - survive_install_raw_pose_fn(ctx, raw_pose_process); + survive_install_pose_fn(ctx, pose_process); survive_install_lighthouse_pose_fn(ctx, lighthouse_process); survive_install_light_fn(ctx, light_process); -- cgit v1.2.3