Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
J
jfx_kalman_filter_src
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
oscar
jfx_kalman_filter_src
Commits
7012979b
Commit
7012979b
authored
Dec 23, 2021
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交角度修正
parent
796d9089
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
Track3D.cpp
BaseTracker/Track3D.cpp
+8
-0
No files found.
BaseTracker/Track3D.cpp
View file @
7012979b
...
...
@@ -5,6 +5,7 @@
#include "Component.h"
#include "LogBase.h"
#include <opencv2/opencv.hpp>
#include <algorithm>
Track3D
::
Track3D
()
:
BaseTrack
(
10
,
7
)
...
...
@@ -215,6 +216,9 @@ int Track3D::GetKFDataOrder(std::vector<int>& order)
order
.
push_back
(
6
);
return
0
;
}
const
float
ANGLE_CHANGE_MAX
=
30
/
180
*
_PI_
;
void
Track3D
::
UpdateDataCheck
(
const
std
::
vector
<
float
>&
data
,
std
::
vector
<
float
>&
out
)
{
if
(
kf_
==
nullptr
)
...
...
@@ -230,6 +234,10 @@ void Track3D::UpdateDataCheck(const std::vector<float>& data, std::vector<float>
{
deta
+=
_PI_
*
2
;
}
if
(
abs
(
deta
)
>
ANGLE_CHANGE_MAX
)
{
deta
=
deta
>
0
?
ANGLE_CHANGE_MAX
:
-
ANGLE_CHANGE_MAX
;
}
angle
=
x_angle
+
deta
;
out
=
data
;
out
[
3
]
=
angle
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment