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
11d1973a
Commit
11d1973a
authored
13 years ago
by
Jason Short
Browse files
Options
Downloads
Patches
Plain Diff
Added Acro_P
parent
67892cd8
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
ArduCopter/Attitude.pde
+2
-2
2 additions, 2 deletions
ArduCopter/Attitude.pde
with
2 additions
and
2 deletions
ArduCopter/Attitude.pde
+
2
−
2
View file @
11d1973a
...
@@ -83,7 +83,7 @@ get_stabilize_yaw(int32_t target_angle)
...
@@ -83,7 +83,7 @@ get_stabilize_yaw(int32_t target_angle)
static
int
static
int
get_acro_roll
(
int32_t
target_rate
)
get_acro_roll
(
int32_t
target_rate
)
{
{
target_rate
=
target_rate
*
g
.
pi_stabilize_roll
.
kP
()
;
target_rate
=
target_rate
*
g
.
acro_P
;
target_rate
=
constrain
(
target_rate
,
-
10000
,
10000
);
target_rate
=
constrain
(
target_rate
,
-
10000
,
10000
);
return
get_rate_roll
(
target_rate
);
return
get_rate_roll
(
target_rate
);
}
}
...
@@ -91,7 +91,7 @@ get_acro_roll(int32_t target_rate)
...
@@ -91,7 +91,7 @@ get_acro_roll(int32_t target_rate)
static
int
static
int
get_acro_pitch
(
int32_t
target_rate
)
get_acro_pitch
(
int32_t
target_rate
)
{
{
target_rate
=
target_rate
*
g
.
pi_stabilize_pitch
.
kP
()
;
target_rate
=
target_rate
*
g
.
acro_P
;
target_rate
=
constrain
(
target_rate
,
-
10000
,
10000
);
target_rate
=
constrain
(
target_rate
,
-
10000
,
10000
);
return
get_rate_pitch
(
target_rate
);
return
get_rate_pitch
(
target_rate
);
}
}
...
...
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