Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
b2082edb
Commit
b2082edb
authored
Jul 15, 2019
by
Pierre TILAK
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes on Compass COG cursor
parent
719931c5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
69 additions
and
22 deletions
+69
-22
qgcimages.qrc
qgcimages.qrc
+1
-0
cOGPointer.svg
src/FlightMap/Images/cOGPointer.svg
+53
-0
QGCCompassWidget.qml
src/FlightMap/Widgets/QGCCompassWidget.qml
+15
-22
No files found.
qgcimages.qrc
View file @
b2082edb
...
...
@@ -69,6 +69,7 @@
<file alias="CogWheel.svg">src/MissionManager/CogWheel.svg</file>
<file alias="compassInstrumentArrow.svg">src/FlightMap/Images/compassInstrumentArrow.svg</file>
<file alias="compassInstrumentDial.svg">src/FlightMap/Images/compassInstrumentDial.svg</file>
<file alias="cOGPointer.svg">src/FlightMap/Images/cOGPointer.svg</file>
<file alias="Connect.svg">src/ui/toolbar/Images/Connect.svg</file>
<file alias="crossHair.svg">src/FlightMap/Images/crossHair.svg</file>
<file alias="DatalinkLoss.svg">src/AutoPilotPlugins/PX4/Images/DatalinkLoss.svg</file>
...
...
src/FlightMap/Images/cOGPointer.svg
0 → 100644
View file @
b2082edb
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Generator: Adobe Illustrator 18.1.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
xmlns:dc=
"http://purl.org/dc/elements/1.1/"
xmlns:cc=
"http://creativecommons.org/ns#"
xmlns:rdf=
"http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg=
"http://www.w3.org/2000/svg"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:sodipodi=
"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape=
"http://www.inkscape.org/namespaces/inkscape"
version=
"1.1"
id=
"Layer_3"
x=
"0px"
y=
"0px"
viewBox=
"0 0 288 288"
enable-background=
"new 0 0 288 288"
xml:space=
"preserve"
inkscape:version=
"0.91 r13725"
sodipodi:docname=
"cOGPointer .svg"
><metadata
id=
"metadata11"
><rdf:RDF><cc:Work
rdf:about=
""
><dc:format>
image/svg+xml
</dc:format><dc:type
rdf:resource=
"http://purl.org/dc/dcmitype/StillImage"
/><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
id=
"defs9"
/><sodipodi:namedview
pagecolor=
"#ffffff"
bordercolor=
"#666666"
borderopacity=
"1"
objecttolerance=
"10"
gridtolerance=
"10"
guidetolerance=
"10"
inkscape:pageopacity=
"0"
inkscape:pageshadow=
"2"
inkscape:window-width=
"1855"
inkscape:window-height=
"1056"
id=
"namedview7"
showgrid=
"false"
inkscape:zoom=
"2.3177389"
inkscape:cx=
"103.82028"
inkscape:cy=
"155.36757"
inkscape:window-x=
"65"
inkscape:window-y=
"24"
inkscape:window-maximized=
"1"
inkscape:current-layer=
"Layer_3"
/><polygon
points=
"133.2,17.4 154.8,17.4 144,46.2 "
id=
"polygon3"
transform=
"matrix(-1,0,0,-1,288,104.6)"
style=
"fill:#008000"
/><rect
x=
"135"
y=
"270"
fill=
"none"
width=
"18"
height=
"18"
id=
"rect5"
/></svg>
\ No newline at end of file
src/FlightMap/Widgets/QGCCompassWidget.qml
View file @
b2082edb
...
...
@@ -58,6 +58,21 @@ Item {
anchors.fill
:
parent
visible
:
false
Image
{
id
:
cOGPointer
source
:
_showCOGAngleCompass
?
"
/qmlimages/cOGPointer.svg
"
:
""
mipmap
:
true
fillMode
:
Image
.
PreserveAspectFit
anchors.fill
:
parent
sourceSize.height
:
parent
.
height
transform
:
Rotation
{
origin.x
:
cOGPointer
.
width
/
2
origin.y
:
cOGPointer
.
height
/
2
angle
:
_courseOverGround
-
_heading
}
}
Image
{
id
:
pointer
width
:
size
*
0.65
...
...
@@ -99,28 +114,6 @@ Item {
}
}
Image
{
id
:
cOGPointer
source
:
_showCOGAngleCompass
?
"
/qmlimages/attitudePointer.svg
"
:
""
mipmap
:
true
fillMode
:
Image
.
PreserveAspectFit
anchors.fill
:
parent
sourceSize.height
:
parent
.
height
onVisibleChanged
:
{
if
(
visible
)
console
.
log
(
"
is being displayed
"
)
else
console
.
log
(
"
is being hidden
"
)
}
transform
:
Rotation
{
origin.x
:
cOGPointer
.
width
/
2
origin.y
:
cOGPointer
.
height
/
2
angle
:
_courseOverGround
-
_heading
}
}
Rectangle
{
anchors.centerIn
:
parent
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment