Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Ardupilot
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
Ardupilot
Commits
62b5f326
Commit
62b5f326
authored
10 years ago
by
Robert Lefebvre
Committed by
Randy Mackay
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Copter: Use landinggear.force_deploy method when auto-landing
parent
20fce5c9
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
ArduCopter/LandingGear.pde
+6
-0
6 additions, 0 deletions
ArduCopter/LandingGear.pde
with
6 additions
and
0 deletions
ArduCopter/LandingGear.pde
+
6
−
0
View file @
62b5f326
...
@@ -9,6 +9,12 @@ static void landinggear_update(){
...
@@ -9,6 +9,12 @@ static void landinggear_update(){
// last status (deployed or retracted) used to check for changes
// last status (deployed or retracted) used to check for changes
static
bool
last_deploy_status
;
static
bool
last_deploy_status
;
// if we are doing an automatic landing procedure, force the landing gear to deploy.
// To-Do: should we pause the auto-land procedure to give time for gear to come down?
if
(
control_mode
==
LAND
||
(
control_mode
==
RTL
&&
rtl_state
==
Land
)
||
(
control_mode
==
AUTO
&&
auto_mode
==
Auto_Land
)){
landinggear
.
force_deploy
(
true
);
}
landinggear
.
update
();
landinggear
.
update
();
// send event message to datalog if status has changed
// send event message to datalog if status has changed
...
...
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