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
3b5b2eba
Commit
3b5b2eba
authored
12 years ago
by
rmackay9
Browse files
Options
Downloads
Patches
Plain Diff
ArduCopter: set fast gains while auto trim is being executed
parent
67e02a81
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/control_modes.pde
+11
-0
11 additions, 0 deletions
ArduCopter/control_modes.pde
with
11 additions
and
0 deletions
ArduCopter/control_modes.pde
+
11
−
0
View file @
3b5b2eba
...
...
@@ -161,6 +161,12 @@ static void auto_trim()
//g.rc_2.dead_zone = 60;
auto_level_counter
--
;
if
(
motors
.
armed
()
)
{
// set high AHRS gains to force accelerometers to impact attitude estimate
ahrs
.
set_fast_gains
(
true
);
}
trim_accel
();
led_mode
=
AUTO_TRIM_LEDS
;
do_simple
=
false
;
...
...
@@ -174,6 +180,11 @@ static void auto_trim()
reset_control_switch
();
// go back to normal AHRS gains
if
(
motors
.
armed
()
)
{
ahrs
.
set_fast_gains
(
false
);
}
//Serial.println("Done");
auto_level_counter
=
0
;
}
...
...
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