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
9bf9e0ed
Commit
9bf9e0ed
authored
11 years ago
by
Randy Mackay
Browse files
Options
Downloads
Patches
Plain Diff
Copter: check parachute is enabled before manual_release
parent
3600bed4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ArduCopter/crash_check.pde
+5
-2
5 additions, 2 deletions
ArduCopter/crash_check.pde
with
5 additions
and
2 deletions
ArduCopter/crash_check.pde
+
5
−
2
View file @
9bf9e0ed
...
...
@@ -156,8 +156,6 @@ void parachute_check()
// parachute_release - trigger the release of the parachute, disarm the motors and notify the user
static
void
parachute_release
()
{
// To-Do: add warning tone and short delay before triggering release
// send message to gcs and dataflash
gcs_send_text_P
(
SEVERITY_HIGH
,
PSTR
(
"Parachute: Released!"
));
Log_Write_Event
(
DATA_PARACHUTE_RELEASED
);
...
...
@@ -173,6 +171,11 @@ static void parachute_release()
// checks if the vehicle is landed
static
void
parachute_manual_release
()
{
// exit immediately if parachute is not enabled
if
(
!
parachute
.
enabled
())
{
return
;
}
// do not release if we are landed or below the minimum altitude above home
if
(
ap
.
land_complete
||
(
parachute
.
alt_min
()
!=
0
&&
(
baro_alt
<
(
uint32_t
)
parachute
.
alt_min
()
*
100
)))
{
// warn user of reason for failure
...
...
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