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
0e603732
Commit
0e603732
authored
13 years ago
by
Andrew Tridgell
Browse files
Options
Downloads
Patches
Plain Diff
AP_Declination: fixed build of test sketch
parent
56d2b9ef
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_Declination/examples/AP_Declination_test/AP_Declination_test.pde
+9
-7
9 additions, 7 deletions
...tion/examples/AP_Declination_test/AP_Declination_test.pde
with
9 additions
and
7 deletions
libraries/AP_Declination/examples/AP_Declination_test/AP_Declination_test.pde
+
9
−
7
View file @
0e603732
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
// AVR runtime
#include
<avr/io.h>
#include
<avr/eeprom.h>
#include
<avr/pgmspace.h>
#include
<math.h>
#include
<FastSerial.h>
#include
<AP_Common.h>
#include
<AP_Math.h>
#include
<AP_Declination.h>
FastSerialPort
(
Serial
,
0
);
void
setup
(
void
)
{
float
declination
=
AP_Declination
::
get_declination
(
43.064191
,
-
87.997498
);
Serial
.
printf
(
"declination: %d"
,
declination
);
float
declination
;
Serial
.
begin
(
115200
);
declination
=
AP_Declination
::
get_declination
(
43.064191
,
-
87.997498
);
Serial
.
printf
(
"declination: %f
\n
"
,
declination
);
}
void
loop
(
void
)
{
}
\ No newline at end of file
}
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