Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Baitboat
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenSource
Baitboat
Commits
d34ea4c1
Commit
d34ea4c1
authored
10 years ago
by
Randy Mackay
Browse files
Options
Downloads
Patches
Plain Diff
AC_PosControl: fix to default force_descend param
parent
c7a38c43
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/AC_AttitudeControl/AC_PosControl.h
+2
-1
2 additions, 1 deletion
libraries/AC_AttitudeControl/AC_PosControl.h
with
2 additions
and
1 deletion
libraries/AC_AttitudeControl/AC_PosControl.h
+
2
−
1
View file @
d34ea4c1
...
@@ -109,7 +109,8 @@ public:
...
@@ -109,7 +109,8 @@ public:
/// should be called continuously (with dt set to be the expected time between calls)
/// should be called continuously (with dt set to be the expected time between calls)
/// actual position target will be moved no faster than the speed_down and speed_up
/// actual position target will be moved no faster than the speed_down and speed_up
/// target will also be stopped if the motors hit their limits or leash length is exceeded
/// target will also be stopped if the motors hit their limits or leash length is exceeded
void
set_alt_target_from_climb_rate
(
float
climb_rate_cms
,
float
dt
,
bool
force_descend
=
true
);
/// set force_descend to true during landing to allow target to move low enough to slow the motors
void
set_alt_target_from_climb_rate
(
float
climb_rate_cms
,
float
dt
,
bool
force_descend
=
false
);
/// set_alt_target_to_current_alt - set altitude target to current altitude
/// set_alt_target_to_current_alt - set altitude target to current altitude
void
set_alt_target_to_current_alt
()
{
_pos_target
.
z
=
_inav
.
get_altitude
();
}
void
set_alt_target_to_current_alt
()
{
_pos_target
.
z
=
_inav
.
get_altitude
();
}
...
...
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