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
ee50e637
Commit
ee50e637
authored
12 years ago
by
rmackay9
Browse files
Options
Downloads
Patches
Plain Diff
AP_AHRS: remove debug messages
parent
200389dc
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
libraries/AP_AHRS/AP_AHRS.cpp
+0
-6
0 additions, 6 deletions
libraries/AP_AHRS/AP_AHRS.cpp
with
0 additions
and
6 deletions
libraries/AP_AHRS/AP_AHRS.cpp
+
0
−
6
View file @
ee50e637
...
...
@@ -101,16 +101,10 @@ void AP_AHRS::add_trim(float roll_in_radians, float pitch_in_radians)
{
Vector3f
trim
=
_trim
.
get
();
// debug -- remove me!
Serial
.
printf_P
(
PSTR
(
"
\n
add_trim before R:%4.2f P:%4.2f
\n
"
),
ToDeg
(
trim
.
x
),
ToDeg
(
trim
.
y
));
// add new trim
trim
.
x
=
constrain
(
trim
.
x
+
roll_in_radians
,
ToRad
(
-
10.0
),
ToRad
(
10.0
));
trim
.
y
=
constrain
(
trim
.
y
+
pitch_in_radians
,
ToRad
(
-
10.0
),
ToRad
(
10.0
));
// set and save new trim values
_trim
.
set_and_save
(
trim
);
// debug -- remove me!
Serial
.
printf_P
(
PSTR
(
"add_trim after R:%4.2f P:%4.2f
\n
"
),
ToDeg
(
trim
.
x
),
ToDeg
(
trim
.
y
));
}
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