From 7ae404b451f73a23beaf65bc0806ff6811862f07 Mon Sep 17 00:00:00 2001 From: Kristoffer Richardsson Date: Tue, 24 Oct 2023 08:46:11 +0200 Subject: [PATCH] Hide code when using LH as ground truth to fix compilation error --- src/modules/src/lighthouse/lighthouse_position_est.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/src/lighthouse/lighthouse_position_est.c b/src/modules/src/lighthouse/lighthouse_position_est.c index e1a46211be..584ad5f26f 100644 --- a/src/modules/src/lighthouse/lighthouse_position_est.c +++ b/src/modules/src/lighthouse/lighthouse_position_est.c @@ -46,7 +46,10 @@ static STATS_CNT_RATE_DEFINE(positionRate, ONE_SECOND); static STATS_CNT_RATE_DEFINE(estBs0Rate, HALF_SECOND); static STATS_CNT_RATE_DEFINE(estBs1Rate, HALF_SECOND); + +#ifndef CONFIG_DECK_LIGHTHOUSE_AS_GROUNDTRUTH static statsCntRateLogger_t* bsEstRates[CONFIG_DECK_LIGHTHOUSE_MAX_N_BS] = {&estBs0Rate, &estBs1Rate}; +#endif // The light planes in LH2 are tilted +- 30 degrees static const float t30 = M_PI / 6;