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
6679ac37
Commit
6679ac37
authored
Feb 10, 2011
by
lm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed master branch
parent
fe401d20
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
14 deletions
+14
-14
qgroundcontrol.pri
qgroundcontrol.pri
+8
-8
MAVLinkSimulationLink.cc
src/comm/MAVLinkSimulationLink.cc
+2
-2
MAVLinkSimulationMAV.cc
src/comm/MAVLinkSimulationMAV.cc
+0
-1
UAS.cc
src/uas/UAS.cc
+3
-2
UAS.h
src/uas/UAS.h
+1
-1
No files found.
qgroundcontrol.pri
View file @
6679ac37
...
...
@@ -48,14 +48,14 @@ DEFINES += _TTY_NOWARN_
macx {
COMPILER_VERSION = $$system(gcc -v)
message(Using compiler $$COMPILER_VERSION)
#
message(Using compiler $$COMPILER_VERSION)
HARDWARE_PLATFORM = $$system(uname -a)
contains(
HARDWARE_PLATFORM, 9.6.0 ) || contains( HARDWARE_PLATFORM, 9.7.0 ) || contains( HARDWARE_PLATFORM, 9.8.0 ) || contains( HARDWARE_PLATFORM, 9.9.0
) {
contains(
$$HARDWARE_PLATFORM, "9.6.0" ) || contains( $$HARDWARE_PLATFORM, "9.7.0" ) || contains( $$HARDWARE_PLATFORM, "9.8.0" ) || contains( $$HARDWARE_PLATFORM, "9.9.0"
) {
# x86 Mac OS X Leopard 10.5 and earlier
CONFIG += x86 cocoa phonon
CONFIG -= x86_64
message(Building for Mac OS X 32bit/Leopard 10.5 and earlier)
CONFIG += x86
x86_64
cocoa phonon
#
CONFIG -= x86_64
#
message(Building for Mac OS X 32bit/Leopard 10.5 and earlier)
# Enable function-profiling with the OS X saturn tool
debug {
...
...
@@ -65,9 +65,9 @@ macx {
}
} else {
# x64 Mac OS X Snow Leopard 10.6 and later
CONFIG += x86_64 cocoa
CONFIG -= x86
phonon
message(Building for Mac OS X 64bit/Snow Leopard 10.6 and later)
CONFIG += x86_64
x86
cocoa
#CONFIG -= x86 #
phonon
#
message(Building for Mac OS X 64bit/Snow Leopard 10.6 and later)
debug {
#QMAKE_CXXFLAGS += -finstrument-functions
#LIBS += -lSaturn
...
...
src/comm/MAVLinkSimulationLink.cc
View file @
6679ac37
...
...
@@ -114,7 +114,6 @@ void MAVLinkSimulationLink::run()
status
.
mode
=
MAV_MODE_UNINIT
;
status
.
status
=
MAV_STATE_UNINIT
;
status
.
vbat
=
0
;
status
.
motor_block
=
1
;
status
.
packet_drop
=
0
;
...
...
@@ -619,8 +618,9 @@ void MAVLinkSimulationLink::mainloop()
uint8_t
gpsLock
=
2
;
uint8_t
visLock
=
3
;
uint8_t
ahrsHealth
=
200
;
uint8_t
posLock
=
qMax
(
gpsLock
,
visLock
);
messageSize
=
mavlink_msg_control_status_pack
(
systemId
,
componentId
,
&
msg
,
posLock
,
visLock
,
gpsLock
,
a
ttControl
,
posXYControl
,
posZControl
,
posYawControl
);
messageSize
=
mavlink_msg_control_status_pack
(
systemId
,
componentId
,
&
msg
,
posLock
,
visLock
,
gpsLock
,
a
hrsHealth
,
attControl
,
posXYControl
,
posZControl
,
posYawControl
);
#endif
bufferlength
=
mavlink_msg_to_send_buffer
(
buffer
,
&
msg
);
...
...
src/comm/MAVLinkSimulationMAV.cc
View file @
6679ac37
...
...
@@ -140,7 +140,6 @@ void MAVLinkSimulationMAV::mainloop()
// SYSTEM STATUS
mavlink_sys_status_t
status
;
status
.
load
=
300
;
status
.
motor_block
=
1
;
status
.
mode
=
sys_mode
;
status
.
nav_mode
=
nav_mode
;
status
.
packet_drop
=
0
;
...
...
src/uas/UAS.cc
View file @
6679ac37
...
...
@@ -251,11 +251,12 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
getStatusForCode
((
int
)
state
.
status
,
uasState
,
stateDescription
);
emit
statusChanged
(
this
,
uasState
,
stateDescription
);
emit
statusChanged
(
this
->
status
);
emit
loadChanged
(
this
,
state
.
load
/
10.0
f
);
emit
valueChanged
(
uasId
,
"Load"
,
"%"
,
((
float
)
state
.
load
)
/
1000.0
f
,
MG
::
TIME
::
getGroundTimeNow
());
stateAudio
=
" changed status to "
+
uasState
;
}
emit
loadChanged
(
this
,
state
.
load
/
10.0
f
);
emit
valueChanged
(
uasId
,
"Load"
,
"%"
,
((
float
)
state
.
load
)
/
1000.0
f
,
getUnixTime
());
if
(
this
->
mode
!=
static_cast
<
unsigned
int
>
(
state
.
mode
))
{
modechanged
=
true
;
...
...
src/uas/UAS.h
View file @
6679ac37
...
...
@@ -317,7 +317,7 @@ signals:
protected:
/** @brief Get the UNIX timestamp in microseconds */
quint64
getUnixTime
(
quint64
time
);
quint64
getUnixTime
(
quint64
time
=
0
);
protected
slots
:
/** @brief Write settings to disk */
...
...
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