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
f51478ee
Commit
f51478ee
authored
11 years ago
by
Andrew Tridgell
Browse files
Options
Downloads
Patches
Plain Diff
Plane: fixed LOITER_TURNS counter for counter-clockwise loiter
thanks to Iskess for finding this bug!
parent
c3d6ed1e
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
ArduPlane/navigation.pde
+1
-1
1 addition, 1 deletion
ArduPlane/navigation.pde
with
1 addition
and
1 deletion
ArduPlane/navigation.pde
+
1
−
1
View file @
f51478ee
...
@@ -37,7 +37,7 @@ static void loiter_angle_update(void)
...
@@ -37,7 +37,7 @@ static void loiter_angle_update(void)
loiter
.
old_target_bearing_cd
=
target_bearing_cd
;
loiter
.
old_target_bearing_cd
=
target_bearing_cd
;
loiter_delta_cd
=
wrap_180_cd
(
loiter_delta_cd
);
loiter_delta_cd
=
wrap_180_cd
(
loiter_delta_cd
);
loiter
.
sum_cd
+=
loiter_delta_cd
;
loiter
.
sum_cd
+=
loiter_delta_cd
*
loiter
.
direction
;
}
}
//****************************************************************
//****************************************************************
...
...
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