Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qgroundcontrol
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
Valentin Platzgummer
qgroundcontrol
Commits
1b542ab5
Commit
1b542ab5
authored
6 years ago
by
Willian Galvani
Browse files
Options
Downloads
Patches
Plain Diff
PositionManager.h: add gcsHeading
parent
1798f453
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/PositionManager/PositionManager.h
+6
-1
6 additions, 1 deletion
src/PositionManager/PositionManager.h
with
6 additions
and
1 deletion
src/PositionManager/PositionManager.h
+
6
−
1
View file @
1b542ab5
...
...
@@ -26,6 +26,7 @@ public:
~
QGCPositionManager
();
Q_PROPERTY
(
QGeoCoordinate
gcsPosition
READ
gcsPosition
NOTIFY
gcsPositionChanged
)
Q_PROPERTY
(
qreal
gcsHeading
READ
gcsHeading
NOTIFY
gcsHeadingChanged
)
enum
QGCPositionSource
{
Simulated
,
...
...
@@ -36,6 +37,8 @@ public:
QGeoCoordinate
gcsPosition
(
void
)
{
return
_gcsPosition
;
}
qreal
gcsHeading
()
{
return
_gcsHeading
;
}
void
setPositionSource
(
QGCPositionSource
source
);
int
updateInterval
()
const
;
...
...
@@ -50,11 +53,13 @@ private slots:
signals
:
void
gcsPositionChanged
(
QGeoCoordinate
gcsPosition
);
void
gcsHeadingChanged
(
qreal
gcsHeading
);
void
positionInfoUpdated
(
QGeoPositionInfo
update
);
private
:
int
_updateInterval
;
QGeoCoordinate
_gcsPosition
;
qreal
_gcsHeading
;
QGeoPositionInfoSource
*
_currentSource
;
QGeoPositionInfoSource
*
_defaultSource
;
...
...
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