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
aa8e5b0a
Commit
aa8e5b0a
authored
12 years ago
by
Randy Mackay
Browse files
Options
Downloads
Patches
Plain Diff
Copter: constrain auto roll and pitch to 45 degrees
parent
e3628445
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
ArduCopter/navigation.pde
+4
-0
4 additions, 0 deletions
ArduCopter/navigation.pde
with
4 additions
and
0 deletions
ArduCopter/navigation.pde
+
4
−
0
View file @
aa8e5b0a
...
...
@@ -592,6 +592,10 @@ static void calc_nav_pitch_roll()
// flip pitch because forward is negative
auto_pitch
=
-
auto_pitch
;
// constrain maximum roll and pitch angles to 45 degrees
auto_roll
=
constrain
(
auto_roll
,
-
4500
,
4500
);
auto_pitch
=
constrain
(
auto_pitch
,
-
4500
,
4500
);
}
static
int16_t
get_desired_speed
(
int16_t
max_speed
)
...
...
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