Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
919b3a21
Commit
919b3a21
authored
7 years ago
by
sanderux
Committed by
Sander Smeets
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Factor in reverse pusher delay on mission acceptance radius
parent
5352cffe
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/modules/navigator/mission_block.cpp
+5
-2
5 additions, 2 deletions
src/modules/navigator/mission_block.cpp
src/modules/navigator/mission_block.h
+1
-0
1 addition, 0 deletions
src/modules/navigator/mission_block.h
with
6 additions
and
2 deletions
src/modules/navigator/mission_block.cpp
+
5
−
2
View file @
919b3a21
...
...
@@ -65,7 +65,8 @@ MissionBlock::MissionBlock(Navigator *navigator, const char *name) :
_param_vtol_wv_takeoff
(
this
,
"VT_WV_TKO_EN"
,
false
),
_param_vtol_wv_loiter
(
this
,
"VT_WV_LTR_EN"
,
false
),
_param_force_vtol
(
this
,
"NAV_FORCE_VT"
,
false
),
_param_back_trans_dec_mss
(
this
,
"VT_B_DEC_MSS"
,
false
)
_param_back_trans_dec_mss
(
this
,
"VT_B_DEC_MSS"
,
false
),
_param_reverse_delay
(
this
,
"VT_B_REV_DEL"
,
false
)
{
}
...
...
@@ -300,7 +301,9 @@ MissionBlock::is_mission_item_reached()
_navigator
->
get_local_position
()
->
vy
*
_navigator
->
get_local_position
()
->
vy
);
if
(
_param_back_trans_dec_mss
.
get
()
>
FLT_EPSILON
&&
velocity
>
FLT_EPSILON
)
{
mission_acceptance_radius
=
(
velocity
/
_param_back_trans_dec_mss
.
get
()
/
2
)
*
velocity
;
mission_acceptance_radius
=
((
velocity
/
_param_back_trans_dec_mss
.
get
()
/
2
)
*
velocity
)
+
_param_reverse_delay
.
get
()
*
velocity
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/modules/navigator/mission_block.h
+
1
−
0
View file @
919b3a21
...
...
@@ -149,6 +149,7 @@ protected:
control
::
BlockParamInt
_param_vtol_wv_loiter
;
control
::
BlockParamInt
_param_force_vtol
;
control
::
BlockParamFloat
_param_back_trans_dec_mss
;
control
::
BlockParamFloat
_param_reverse_delay
;
};
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment