feat: dimensionless quantities with a unit one are not special anymore

This commit is contained in:
Mateusz Pusz committed 2023-07-10 16:53:49 +02:00
1 parent 9370c61022
commit 5d73cd0730
7 files changed
+27 -224

No files matched your search

+1 -1
View File
@@ -124,7 +124,7 @@ constexpr state<Q1, Q2, Q3> state_update(const state<Q1, Q2, Q3>& predicted, QM
template<mp_units::Quantity Q, mp_units::QuantityOf<mp_units::dimensionless> K>
constexpr Q covariance_update(Q uncertainty, K gain)
{
return (1 - gain) * uncertainty;
return (1 * mp_units::one - gain) * uncertainty;
}
// state extrapolation