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
a639df02
Commit
a639df02
authored
11 years ago
by
Randy Mackay
Browse files
Options
Downloads
Patches
Plain Diff
Parachute: set AP_Notify parachute_release flag
parent
e3e7fc28
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/AP_Parachute/AP_Parachute.cpp
+8
-1
8 additions, 1 deletion
libraries/AP_Parachute/AP_Parachute.cpp
with
8 additions
and
1 deletion
libraries/AP_Parachute/AP_Parachute.cpp
+
8
−
1
View file @
a639df02
...
...
@@ -4,6 +4,7 @@
#include
<AP_Relay.h>
#include
<AP_Math.h>
#include
<RC_Channel.h>
#include
<AP_Notify.h>
#include
<AP_HAL.h>
extern
const
AP_HAL
::
HAL
&
hal
;
...
...
@@ -72,6 +73,9 @@ void AP_Parachute::release()
// leave a message that it should be active for this many loops (assumes 50hz loops)
_release_time
=
hal
.
scheduler
->
millis
();
// update AP_Notify
AP_Notify
::
flags
.
parachute_release
=
1
;
}
/// update - shuts off the trigger should be called at about 10hz
...
...
@@ -90,10 +94,13 @@ void AP_Parachute::update()
RC_Channel_aux
::
set_radio
(
RC_Channel_aux
::
k_parachute_release
,
_servo_off_pwm
);
}
else
if
(
_release_type
<=
AP_PARACHUTE_TRIGGER_TYPE_RELAY_3
)
{
// set relay back to zero volts
_relay
.
o
n
(
_release_type
);
_relay
.
o
ff
(
_release_type
);
}
// reset release_time
_release_time
=
0
;
// update AP_Notify
AP_Notify
::
flags
.
parachute_release
=
0
;
}
}
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