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
55b604b1
Commit
55b604b1
authored
11 years ago
by
Andrew Tridgell
Browse files
Options
Downloads
Patches
Plain Diff
AP_Camera: updates for relay API change
parent
e42ba853
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
libraries/AP_Camera/AP_Camera.cpp
+2
-2
2 additions, 2 deletions
libraries/AP_Camera/AP_Camera.cpp
with
2 additions
and
2 deletions
libraries/AP_Camera/AP_Camera.cpp
+
2
−
2
View file @
55b604b1
...
@@ -65,7 +65,7 @@ AP_Camera::servo_pic()
...
@@ -65,7 +65,7 @@ AP_Camera::servo_pic()
void
void
AP_Camera
::
relay_pic
()
AP_Camera
::
relay_pic
()
{
{
_apm_relay
->
on
();
_apm_relay
->
on
(
0
);
// leave a message that it should be active for this many loops (assumes 50hz loops)
// leave a message that it should be active for this many loops (assumes 50hz loops)
_trigger_counter
=
constrain_int16
(
_trigger_duration
*
5
,
0
,
255
);
_trigger_counter
=
constrain_int16
(
_trigger_duration
*
5
,
0
,
255
);
...
@@ -99,7 +99,7 @@ AP_Camera::trigger_pic_cleanup()
...
@@ -99,7 +99,7 @@ AP_Camera::trigger_pic_cleanup()
RC_Channel_aux
::
set_radio
(
RC_Channel_aux
::
k_cam_trigger
,
_servo_off_pwm
);
RC_Channel_aux
::
set_radio
(
RC_Channel_aux
::
k_cam_trigger
,
_servo_off_pwm
);
break
;
break
;
case
AP_CAMERA_TRIGGER_TYPE_RELAY
:
case
AP_CAMERA_TRIGGER_TYPE_RELAY
:
_apm_relay
->
off
();
_apm_relay
->
off
(
0
);
break
;
break
;
}
}
}
}
...
...
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