mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-17 04:15:44 +00:00
t_imu_fusion: Fix initialization of orientation from accelerometer.
This commit is contained in:
parent
08903e67b3
commit
af0515232f
|
@ -95,7 +95,7 @@ public:
|
|||
// Initially, just set it to totally trust gravity.
|
||||
started_ = true;
|
||||
quat_ = Eigen::Quaterniond::FromTwoVectors(
|
||||
Eigen::Vector3d::UnitY(), accel.normalized());
|
||||
accel.normalized(), Eigen::Vector3d::UnitY());
|
||||
return true;
|
||||
}
|
||||
auto scale = 1. - diff;
|
||||
|
|
Loading…
Reference in a new issue