From a978c195a8b0cbf9ff1330ab8c6af1deb79a8b83 Mon Sep 17 00:00:00 2001 From: cnlohr Date: Sun, 18 Mar 2018 02:11:20 -0400 Subject: trying new config mode --- data_recorder.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'data_recorder.c') diff --git a/data_recorder.c b/data_recorder.c index 271b996..47c4010 100644 --- a/data_recorder.c +++ b/data_recorder.c @@ -128,8 +128,9 @@ int main(int argc, char **argv) { output_file = stdout; } - ctx = survive_init_with_config_cb(0, my_config_process); + ctx = survive_init( argc, argv ); + survive_install_htc_config_fn(ctx,my_config_process ); survive_install_light_fn(ctx, my_light_process); survive_install_imu_fn(ctx, my_imu_process); survive_install_lighthouse_pose_fn(ctx, my_lighthouse_process); @@ -139,6 +140,8 @@ int main(int argc, char **argv) { survive_cal_install(ctx); + survive_startup(ctx); + if (!ctx) { fprintf(stderr, "Fatal. Could not start\n"); exit(1); -- cgit v1.2.3