Skip to content

Commit 783c015

Browse files
committed
make gravity vector non-configurable
1 parent babb5b2 commit 783c015

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

glider/src/factor_manager.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,7 @@ FactorManager::FactorManager(const Parameters& params)
5252
boost::shared_ptr<gtsam::PreintegrationCombinedParams> FactorManager::defaultImuParams(double g)
5353
{
5454
boost::shared_ptr<gtsam::PreintegrationCombinedParams> params;
55-
if (params_.frame == "enu")
56-
{
57-
params = gtsam::PreintegrationCombinedParams::MakeSharedU(g);
58-
}
59-
else
60-
{
61-
params = gtsam::PreintegrationCombinedParams::MakeSharedD(g);
62-
}
55+
params = gtsam::PreintegrationCombinedParams::MakeSharedU(g);
6356
double gyro_sigma = (0.5 * M_PI / 180.0) / 60.0;
6457
double accel_sigma = 0.001;
6558

0 commit comments

Comments
 (0)