@@ -81,15 +81,16 @@ template <typename State, typename Output, typename Input, typename UpdateTypes,
81
81
" discarded." )]] inline constexpr auto
82
82
kalman<State, Output, Input, UpdateTypes, PredictionTypes>::u() const
83
83
-> const input &requires (not std::is_same_v<Input, void >) {
84
- return filter.u ;
85
- }
84
+ return filter.u ;
85
+ }
86
86
87
87
template <typename State, typename Output, typename Input, typename UpdateTypes,
88
88
typename PredictionTypes>
89
89
[[nodiscard(" The returned estimated covariance matrix P is unexpectedly "
90
- " discarded." )]] inline constexpr auto
91
- kalman<State, Output, Input, UpdateTypes, PredictionTypes>::p() const
92
- -> const estimate_uncertainty & {
90
+ " discarded." )]] inline constexpr auto kalman<State, Output, Input,
91
+ UpdateTypes,
92
+ PredictionTypes>::p()
93
+ const -> const estimate_uncertainty & {
93
94
return filter.p ;
94
95
}
95
96
@@ -244,24 +245,26 @@ template <typename State, typename Output, typename Input, typename UpdateTypes,
244
245
" discarded." )]] inline constexpr auto
245
246
kalman<State, Output, Input, UpdateTypes, PredictionTypes>::g() const
246
247
-> const input_control &requires (not std::is_same_v<Input, void >) {
247
- return filter.g ;
248
- }
248
+ return filter.g ;
249
+ }
249
250
250
251
template <typename State, typename Output, typename Input, typename UpdateTypes,
251
252
typename PredictionTypes>
252
253
[[nodiscard(" The returned control transition matrix G is unexpectedly "
253
- " discarded." )]] inline constexpr auto
254
- kalman<State, Output, Input, UpdateTypes, PredictionTypes>::g()
254
+ " discarded." )]] inline constexpr auto kalman<State, Output, Input,
255
+ UpdateTypes,
256
+ PredictionTypes>::g()
255
257
-> input_control &requires (not std::is_same_v<Input, void >) {
256
- return filter.g ;
257
- }
258
+ return filter.g ;
259
+ }
258
260
259
261
template <typename State, typename Output, typename Input, typename UpdateTypes,
260
262
typename PredictionTypes>
261
- inline constexpr void
262
- kalman<State, Output, Input, UpdateTypes, PredictionTypes>::g(
263
- const auto &value,
264
- const auto &...values) requires(not std::is_same_v<Input, void >) {
263
+ inline constexpr void kalman<State, Output, Input, UpdateTypes,
264
+ PredictionTypes>::g(const auto &value,
265
+ const auto &...values)
266
+ requires (not std::is_same_v<Input, void >)
267
+ {
265
268
if constexpr (std::is_convertible_v<decltype (value), input_control>) {
266
269
filter.g = std::move (input_control{value, values...});
267
270
} else {
0 commit comments