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
a11ca3da
Commit
a11ca3da
authored
Feb 13, 2011
by
lm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor changes
parent
adc5ee2c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletion
+4
-1
UAS.cc
src/uas/UAS.cc
+2
-0
QGCSensorSettingsWidget.cc
src/ui/QGCSensorSettingsWidget.cc
+1
-0
QGCGoogleEarthView.cc
src/ui/map3D/QGCGoogleEarthView.cc
+1
-1
No files found.
src/uas/UAS.cc
View file @
a11ca3da
...
...
@@ -605,6 +605,7 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
{
emit
globalPositionChanged
(
this
,
pos
.
lat
,
pos
.
lon
,
pos
.
alt
,
time
);
emit
valueChanged
(
uasId
,
"gps speed"
,
"m/s"
,
pos
.
v
,
time
);
positionLock
=
true
;
// Check for NaN
int
alt
=
pos
.
alt
;
...
...
@@ -645,6 +646,7 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
{
emit
globalPositionChanged
(
this
,
pos
.
lat
/
(
double
)
1E7
,
pos
.
lon
/
(
double
)
1E7
,
pos
.
alt
/
1000.0
,
time
);
emit
valueChanged
(
uasId
,
"gps speed"
,
"m/s"
,
pos
.
v
,
time
);
positionLock
=
true
;
// Check for NaN
int
alt
=
pos
.
alt
;
...
...
src/ui/QGCSensorSettingsWidget.cc
View file @
a11ca3da
...
...
@@ -37,6 +37,7 @@ QGCSensorSettingsWidget::QGCSensorSettingsWidget(UASInterface* uas, QWidget *par
ui
(
new
Ui
::
QGCSensorSettingsWidget
)
{
ui
->
setupUi
(
this
);
// FIXME James Goppert
// XXX: This might be a bad idea sending a message every time the value changes
connect
(
ui
->
spinBox_rawSensor
,
SIGNAL
(
valueChanged
(
int
)),
mav
,
SLOT
(
enableRawSensorDataTransmission
(
int
)));
connect
(
ui
->
spinBox_controller
,
SIGNAL
(
valueChanged
(
int
)),
mav
,
SLOT
(
enableRawControllerDataTransmission
(
int
)));
...
...
src/ui/map3D/QGCGoogleEarthView.cc
View file @
a11ca3da
...
...
@@ -214,7 +214,7 @@ void QGCGoogleEarthView::updateWaypointList(int uas)
void
QGCGoogleEarthView
::
updateGlobalPosition
(
UASInterface
*
uas
,
double
lat
,
double
lon
,
double
alt
,
quint64
usec
)
{
Q_UNUSED
(
usec
);
javaScript
(
QString
(
"addTrailPosition(%1, %2, %3, %4);"
).
arg
(
uas
->
getUASID
()).
arg
(
lat
,
0
,
'f'
,
1
5
).
arg
(
lon
,
0
,
'f'
,
15
).
arg
(
alt
,
0
,
'f'
,
15
));
javaScript
(
QString
(
"addTrailPosition(%1, %2, %3, %4);"
).
arg
(
uas
->
getUASID
()).
arg
(
lat
,
0
,
'f'
,
1
8
).
arg
(
lon
,
0
,
'f'
,
18
).
arg
(
alt
,
0
,
'f'
,
15
));
//qDebug() << QString("addTrailPosition(%1, %2, %3, %4);").arg(uas->getUASID()).arg(lat, 0, 'f', 15).arg(lon, 0, 'f', 15).arg(alt, 0, 'f', 15);
}
...
...
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