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
a3f1aa0c
Commit
a3f1aa0c
authored
12 years ago
by
rmackay9
Browse files
Options
Downloads
Patches
Plain Diff
AP_Curve: replace Serial.print with Serial.print_P to save 18 bytes of memory
parent
00279c6d
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
libraries/AP_Common/AP_Curve.h
+4
-4
4 additions, 4 deletions
libraries/AP_Common/AP_Curve.h
with
4 additions
and
4 deletions
libraries/AP_Common/AP_Curve.h
+
4
−
4
View file @
a3f1aa0c
...
...
@@ -129,13 +129,13 @@ T AP_Curve<T,SIZE>::get_y( T x )
template
<
class
T
,
uint8_t
SIZE
>
void
AP_Curve
<
T
,
SIZE
>::
dump_curve
()
{
Serial
.
println
(
"Curve:"
);
Serial
.
println
_P
(
PSTR
(
"Curve:"
)
)
;
for
(
uint8_t
i
=
0
;
i
<
_num_points
;
i
++
){
Serial
.
print
(
"x:"
);
Serial
.
print
_P
(
PSTR
(
"x:"
)
)
;
Serial
.
print
(
_x
[
i
]);
Serial
.
print
(
"
\t
y:"
);
Serial
.
print
_P
(
PSTR
(
"
\t
y:"
)
)
;
Serial
.
print
(
_y
[
i
]);
Serial
.
print
(
"
\t
slope:"
);
Serial
.
print
_P
(
PSTR
(
"
\t
slope:"
)
)
;
Serial
.
print
(
_slope
[
i
],
4
);
Serial
.
println
();
}
...
...
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