Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
extended_kalman.hpp
Go to the documentation of this file.
1/*****************************************************************************/
2/********** !!! WARNING: CODE GENERATED BY TAPROOT. DO NOT EDIT !!! **********/
3/*****************************************************************************/
4
5/*
6 * Copyright (c) 2020-2021 Advanced Robotics at the University of Washington <robomstr@uw.edu>
7 *
8 * This file is part of Taproot.
9 *
10 * Taproot is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation, either version 3 of the License, or
13 * (at your option) any later version.
14 *
15 * Taproot is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with Taproot. If not, see <https://www.gnu.org/licenses/>.
22 */
23
24/*
25 * Copyright (c) 2019 Sanger_X
26 */
27
28#ifndef TAPROOT_EXTENDED_KALMAN_HPP_
29#define TAPROOT_EXTENDED_KALMAN_HPP_
30
31namespace tap
32{
33namespace algorithms
34{
53{
54public:
66 ExtendedKalman(float tQ, float tR);
67
86 float filterData(float dat);
87
91 float getLastFiltered() const;
92
96 void reset();
97
98private:
99 float xLast;
100 float xMid;
101 float xNow;
102 float pMid;
103 float pNow;
104 float pLast;
105 float kg;
106 float A;
107 float B;
108 float Q;
109 float R;
110 float H;
111}; // class ExtendedKalman
112
113} // namespace algorithms
114
115} // namespace tap
116
117#endif // TAPROOT_EXTENDED_KALMAN_HPP_
Definition extended_kalman.hpp:53
float getLastFiltered() const
Definition extended_kalman.cpp:62
float filterData(float dat)
Definition extended_kalman.cpp:50
void reset()
Definition extended_kalman.cpp:64
Definition ballistics.cpp:29