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
4945d66c
Commit
4945d66c
authored
12 years ago
by
Andrew Tridgell
Browse files
Options
Downloads
Patches
Plain Diff
APM: check for geofence fence total of 0
parent
60a6fed3
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
ArduPlane/geofence.pde
+3
-1
3 additions, 1 deletion
ArduPlane/geofence.pde
with
3 additions
and
1 deletion
ArduPlane/geofence.pde
+
3
−
1
View file @
4945d66c
...
...
@@ -89,8 +89,9 @@ static void geofence_load(void)
}
}
if
(
g
.
fence_total
<
0
)
{
if
(
g
.
fence_total
<
=
0
)
{
g
.
fence_total
.
set
(
0
);
return
;
}
for
(
i
=
0
;
i
<
g
.
fence_total
;
i
++
)
{
...
...
@@ -125,6 +126,7 @@ failed:
static
bool
geofence_enabled
(
void
)
{
if
(
g
.
fence_action
==
FENCE_ACTION_NONE
||
g
.
fence_total
<
5
||
(
g
.
fence_action
!=
FENCE_ACTION_REPORT
&&
(
g
.
fence_channel
==
0
||
APM_RC
.
InputCh
(
g
.
fence_channel
-
1
)
<
FENCE_ENABLE_PWM
)))
{
...
...
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