Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
J
jfx_rvfusion_cx
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
ChenKun
jfx_rvfusion_cx
Commits
e27caad8
Commit
e27caad8
authored
May 02, 2023
by
alexander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
speedx modify
parent
a399bcfa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
fusionObject.cpp
src/fusionObject.cpp
+1
-1
trafficObject.cpp
src/trafficObject.cpp
+1
-1
No files found.
src/fusionObject.cpp
View file @
e27caad8
...
...
@@ -124,7 +124,7 @@ double FusionObject::getHeading(double curLon, double curLat, double curSpeed)
double
dist
=
jfx
::
GetDistance
(
mLastCalcuHeadingLon
,
mLastCalcuHeadingLat
,
curLon
,
curLat
);
//if (dist < 3) {
if
(
dist
<
3
||
curSpeed
<
=
1.3
)
{
if
(
dist
<
3
||
curSpeed
<
2.025
)
{
return
mHeading
;
}
...
...
src/trafficObject.cpp
View file @
e27caad8
...
...
@@ -23,7 +23,7 @@ double TrafficObject::genHeading(double speedX, int steps/* = 10*/)
double
dist
=
jfx
::
GetDistance
(
mLon
,
mLat
,
mLastCalcuHeadingLon
,
mLastCalcuHeadingLat
);
//if (dist < 2) {
if
(
dist
<
3.0
||
speedX
<
=
1.38
){
if
(
dist
<
3.0
||
speedX
<
2.025
){
return
mHeading
;
}
...
...
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