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
93ef4035
Commit
93ef4035
authored
12 years ago
by
Andrew Tridgell
Browse files
Options
Downloads
Patches
Plain Diff
AP_GPS: removed unused AP_GPS_Shim.h
parent
02c5c3ec
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libraries/AP_GPS/AP_GPS.h
+1
-1
1 addition, 1 deletion
libraries/AP_GPS/AP_GPS.h
libraries/AP_GPS/AP_GPS_Shim.h
+0
-47
0 additions, 47 deletions
libraries/AP_GPS/AP_GPS_Shim.h
with
1 addition
and
48 deletions
libraries/AP_GPS/AP_GPS.h
+
1
−
1
View file @
93ef4035
...
...
@@ -12,5 +12,5 @@
#include
"AP_GPS_None.h"
#include
"AP_GPS_Auto.h"
#include
"AP_GPS_HIL.h"
#include
"AP_GPS_Shim.h"
// obsoletes AP_GPS_HIL, use in preference
This diff is collapsed.
Click to expand it.
libraries/AP_GPS/AP_GPS_Shim.h
deleted
100644 → 0
+
0
−
47
View file @
02c5c3ec
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: t -*-
//
// Shim GPS driver, for use when the actual GPS data is coming from somewhere else.
// Code by Mike Smith
//
// This library is free software; you can redistribute it and / or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
//
#ifndef AP_GPS_Shim_h
#define AP_GPS_Shim_h
#include
"GPS.h"
class
AP_GPS_Shim
:
public
GPS
{
public:
virtual
void
init
(
AP_HAL
::
UARTDriver
*
s
,
enum
GPS_Engine_Setting
nav_setting
=
GPS_ENGINE_NONE
)
{
_port
=
s
;
};
virtual
bool
read
(
void
)
{
bool
updated
=
_updated
;
_updated
=
false
;
return
updated
;
}
/// Set-and-mark-updated macro for the public member variables; each instance
/// defines a member function set_<variable>(<type>)
///
#define __GPS_SHIM_SET(__type, __name) void set_ ## __name(__type v) { __name = v; _updated = true; }
__GPS_SHIM_SET
(
uint32_t
,
time
);
__GPS_SHIM_SET
(
long
,
latitude
);
__GPS_SHIM_SET
(
long
,
longitude
);
__GPS_SHIM_SET
(
long
,
altitude
);
__GPS_SHIM_SET
(
long
,
ground_speed
);
__GPS_SHIM_SET
(
long
,
ground_course
);
__GPS_SHIM_SET
(
long
,
speed_3d
);
__GPS_SHIM_SET
(
int
,
hdop
);
#undef __GPS_SHIM_SET
private
:
bool
_updated
;
///< set anytime a member is updated, cleared when read() returns true
};
#endif // AP_GPS_HIL_H
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