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
5b6f3fad
Commit
5b6f3fad
authored
Jun 14, 2010
by
pixhawk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added setpoint to UAS
parent
88cf8600
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
8 deletions
+26
-8
PxQuadMAV.cc
src/uas/PxQuadMAV.cc
+0
-7
UAS.cc
src/uas/UAS.cc
+23
-1
UAS.h
src/uas/UAS.h
+3
-0
No files found.
src/uas/PxQuadMAV.cc
View file @
5b6f3fad
...
...
@@ -104,13 +104,6 @@ void PxQuadMAV::receiveMessage(LinkInterface* link, mavlink_message_t message)
emit
valueChanged
(
uasId
,
"vis. vy"
,
pos
.
vy
,
time
);
emit
valueChanged
(
uasId
,
"vis. vz"
,
pos
.
vz
,
time
);
emit
valueChanged
(
uasId
,
"vis. vyaw"
,
pos
.
vyaw
,
time
);
// Set internal state
if
(
!
positionLock
)
{
// If position was not locked before, notify positive
GAudioOutput
::
instance
()
->
notifyPositive
();
}
positionLock
=
true
;
}
break
;
case
MAVLINK_MSG_ID_AUX_STATUS
:
...
...
src/uas/UAS.cc
View file @
5b6f3fad
...
...
@@ -100,7 +100,7 @@ void UAS::updateState()
}
else
{
if
(
mode
>
MAV_MODE_LOCKED
&&
positionLock
)
if
(
mode
>
(
uint8_t
)
MAV_MODE_LOCKED
&&
positionLock
)
{
GAudioOutput
::
instance
()
->
notifyNegative
();
}
...
...
@@ -301,6 +301,14 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
emit
valueChanged
(
uasId
,
"vy"
,
pos
.
vy
,
time
);
emit
valueChanged
(
uasId
,
"vz"
,
pos
.
vz
,
time
);
emit
localPositionChanged
(
this
,
pos
.
x
,
pos
.
y
,
pos
.
z
,
time
);
emit
speedChanged
(
this
,
pos
.
vx
,
pos
.
vy
,
pos
.
vz
,
time
);
// Set internal state
if
(
!
positionLock
)
{
// If position was not locked before, notify positive
GAudioOutput
::
instance
()
->
notifyPositive
();
}
positionLock
=
true
;
}
break
;
case
MAVLINK_MSG_ID_GLOBAL_POSITION
:
...
...
@@ -317,6 +325,14 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
emit
valueChanged
(
uasId
,
"g-vy"
,
pos
.
vy
,
time
);
emit
valueChanged
(
uasId
,
"g-vz"
,
pos
.
vz
,
time
);
emit
globalPositionChanged
(
this
,
pos
.
lon
,
pos
.
lat
,
pos
.
alt
,
time
);
emit
speedChanged
(
this
,
pos
.
vx
,
pos
.
vy
,
pos
.
vz
,
time
);
// Set internal state
if
(
!
positionLock
)
{
// If position was not locked before, notify positive
GAudioOutput
::
instance
()
->
notifyPositive
();
}
positionLock
=
true
;
}
break
;
case
MAVLINK_MSG_ID_GPS_RAW
:
...
...
@@ -464,6 +480,12 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
}
}
void
UAS
::
setLocalPositionSetpoint
(
float
x
,
float
y
,
float
z
,
float
yaw
)
{
mavlink_message_t
msg
;
}
quint64
UAS
::
getUnixTime
(
quint64
time
)
{
if
(
time
==
0
)
...
...
src/uas/UAS.h
View file @
5b6f3fad
...
...
@@ -216,6 +216,9 @@ public slots:
/** @brief Update the system state */
void
updateState
();
/** @brief Set local position setpoint */
void
setLocalPositionSetpoint
(
float
x
,
float
y
,
float
z
,
float
yaw
);
signals:
/** @brief The main/battery voltage has changed/was updated */
...
...
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