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
ea2ee6c1
Commit
ea2ee6c1
authored
Jun 10, 2010
by
lm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Attitude controller and waypoint vis changes
parent
f929b6cb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
15 deletions
+59
-15
UAS.cc
src/uas/UAS.cc
+22
-1
WaypointList.cc
src/ui/WaypointList.cc
+3
-0
WaypointList.ui
src/ui/WaypointList.ui
+34
-14
No files found.
src/uas/UAS.cc
View file @
ea2ee6c1
...
...
@@ -374,7 +374,28 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
case
MAVLINK_MSG_ID_DEBUG
:
emit
valueChanged
(
uasId
,
QString
(
"debug "
)
+
QString
::
number
(
mavlink_msg_debug_get_ind
(
&
message
)),
mavlink_msg_debug_get_value
(
&
message
),
MG
::
TIME
::
getGroundTimeNow
());
break
;
case
MAVLINK_MSG_ID_ATTITUDE_CONTROLLER_OUTPUT
:
{
mavlink_attitude_controller_output_t
out
;
mavlink_msg_attitude_controller_output_decode
(
&
message
,
&
out
);
quint64
time
=
MG
::
TIME
::
getGroundTimeNowUsecs
();
emit
attitudeThrustSetPointChanged
(
this
,
out
.
roll
,
out
.
pitch
,
out
.
yaw
,
out
.
thrust
,
time
);
emit
valueChanged
(
uasId
,
"att control roll"
,
out
.
roll
,
time
/
1000.0
f
);
emit
valueChanged
(
uasId
,
"att control pitch"
,
out
.
pitch
,
time
/
1000.0
f
);
emit
valueChanged
(
uasId
,
"att control yaw"
,
out
.
yaw
,
time
/
1000.0
f
);
}
break
;
case
MAVLINK_MSG_ID_POSITION_CONTROLLER_OUTPUT
:
{
mavlink_position_controller_output_t
out
;
mavlink_msg_position_controller_output_decode
(
&
message
,
&
out
);
quint64
time
=
MG
::
TIME
::
getGroundTimeNowUsecs
();
emit
attitudeThrustSetPointChanged
(
this
,
out
.
x
,
out
.
y
,
out
.
z
,
out
.
yaw
,
time
);
emit
valueChanged
(
uasId
,
"pos control x"
,
out
.
x
,
time
/
1000.0
f
);
emit
valueChanged
(
uasId
,
"pos control y"
,
out
.
y
,
time
/
1000.0
f
);
emit
valueChanged
(
uasId
,
"pos control z"
,
out
.
z
,
time
/
1000.0
f
);
}
break
;
case
MAVLINK_MSG_ID_WAYPOINT_COUNT
:
{
mavlink_waypoint_count_t
wpc
;
...
...
src/ui/WaypointList.cc
View file @
ea2ee6c1
...
...
@@ -64,6 +64,9 @@ WaypointList::WaypointList(QWidget *parent, UASInterface* uas) :
// SEND WAYPOINTS
connect
(
m_ui
->
transmitButton
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
transmit
()));
// REQUEST WAYPOINTS
connect
(
m_ui
->
readButton
,
SIGNAL
(
clicked
()),
this
,
SIGNAL
(
requestWaypoints
()));
// SAVE/LOAD WAYPOINTS
connect
(
m_ui
->
saveButton
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
saveWaypoints
()));
connect
(
m_ui
->
loadButton
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
loadWaypoints
()));
...
...
src/ui/WaypointList.ui
View file @
ea2ee6c1
...
...
@@ -26,7 +26,7 @@
<property
name=
"spacing"
>
<number>
4
</number>
</property>
<item
row=
"0"
column=
"0"
colspan=
"
5
"
>
<item
row=
"0"
column=
"0"
colspan=
"
7
"
>
<widget
class=
"QScrollArea"
name=
"scrollArea"
>
<property
name=
"widgetResizable"
>
<bool>
true
</bool>
...
...
@@ -36,8 +36,8 @@
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
40
5
</width>
<height>
1
60
</height>
<width>
40
9
</width>
<height>
1
58
</height>
</rect>
</property>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout"
>
...
...
@@ -78,17 +78,6 @@
</property>
</widget>
</item>
<item
row=
"1"
column=
"4"
>
<widget
class=
"QPushButton"
name=
"transmitButton"
>
<property
name=
"text"
>
<string>
Transmit
</string>
</property>
<property
name=
"icon"
>
<iconset
resource=
"../../mavground.qrc"
>
<normaloff>
:/images/devices/network-wireless.svg
</normaloff>
:/images/devices/network-wireless.svg
</iconset>
</property>
</widget>
</item>
<item
row=
"1"
column=
"1"
>
<widget
class=
"QPushButton"
name=
"saveButton"
>
<property
name=
"text"
>
...
...
@@ -103,6 +92,28 @@
</property>
</widget>
</item>
<item
row=
"1"
column=
"5"
>
<widget
class=
"QPushButton"
name=
"readButton"
>
<property
name=
"text"
>
<string>
Read
</string>
</property>
<property
name=
"icon"
>
<iconset
resource=
"../../mavground.qrc"
>
<normaloff>
:/images/status/software-update-available.svg
</normaloff>
:/images/status/software-update-available.svg
</iconset>
</property>
</widget>
</item>
<item
row=
"1"
column=
"6"
>
<widget
class=
"QPushButton"
name=
"transmitButton"
>
<property
name=
"text"
>
<string>
Write
</string>
</property>
<property
name=
"icon"
>
<iconset
resource=
"../../mavground.qrc"
>
<normaloff>
:/images/devices/network-wireless.svg
</normaloff>
:/images/devices/network-wireless.svg
</iconset>
</property>
</widget>
</item>
</layout>
<action
name=
"actionAddWaypoint"
>
<property
name=
"icon"
>
...
...
@@ -128,6 +139,15 @@
<string>
Transmit waypoints to unmanned system
</string>
</property>
</action>
<action
name=
"actionRead"
>
<property
name=
"icon"
>
<iconset
resource=
"../../mavground.qrc"
>
<normaloff>
:/images/status/software-update-available.svg
</normaloff>
:/images/status/software-update-available.svg
</iconset>
</property>
<property
name=
"text"
>
<string>
Read
</string>
</property>
</action>
</widget>
<resources>
<include
location=
"../../mavground.qrc"
/>
...
...
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