diff options
author | Justin Berger <j.david.berger@gmail.com> | 2018-04-01 16:04:05 -0600 |
---|---|---|
committer | Justin Berger <j.david.berger@gmail.com> | 2018-04-01 16:09:58 -0600 |
commit | 1724abef15a4090640bd82ba408681438316de7e (patch) | |
tree | 129d3eeaabe9d6e011897b33e8d8a2acaaae3ac9 /src/survive_reproject.c | |
parent | 5384af65f9d63d095cb9987d36de57ccee323300 (diff) | |
download | libsurvive-1724abef15a4090640bd82ba408681438316de7e.tar.gz libsurvive-1724abef15a4090640bd82ba408681438316de7e.tar.bz2 |
Made calibration on other posers use calibration data
Diffstat (limited to 'src/survive_reproject.c')
-rw-r--r-- | src/survive_reproject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/survive_reproject.c b/src/survive_reproject.c index 751abc0..0eaceb2 100644 --- a/src/survive_reproject.c +++ b/src/survive_reproject.c @@ -46,8 +46,8 @@ void survive_reproject_from_pose_with_bsd(const BaseStationData *bsd, const surv } -void survive_apply_bsd_calibration_by_flag(SurviveContext *ctx, int lh, struct survive_calibration_config *config, - const FLT *in, FLT *out) { +void survive_apply_bsd_calibration_by_config(SurviveContext *ctx, int lh, struct survive_calibration_config *config, + const FLT *in, FLT *out) { const BaseStationCal *cal = &ctx->bsd[lh].fcal; out[0] = in[0] + config->phase_scale * cal->phase[0]; out[1] = in[1] + config->phase_scale * cal->phase[1]; @@ -95,7 +95,7 @@ survive_calibration_config survive_calibration_config_ctor() { } void survive_apply_bsd_calibration(SurviveContext *ctx, int lh, const FLT *in, FLT *out) { - survive_apply_bsd_calibration_by_flag(ctx, lh, &ctx->calibration_config, in, out); + survive_apply_bsd_calibration_by_config(ctx, lh, &ctx->calibration_config, in, out); } void survive_reproject_from_pose_with_config(const SurviveContext *ctx, struct survive_calibration_config *config, |