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
c6c5c403
Unverified
Commit
c6c5c403
authored
May 03, 2018
by
Don Gagne
Committed by
GitHub
May 03, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6405 from patrickelectric/corrections_2
Some random corrections around the code
parents
01c49e6e
65668635
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
6 additions
and
14 deletions
+6
-14
APMFlightModesComponentController.cc
...AutoPilotPlugins/APM/APMFlightModesComponentController.cc
+1
-1
FixedWingLandingComplexItem.cc
src/MissionManager/FixedWingLandingComplexItem.cc
+1
-1
PlanManager.cc
src/MissionManager/PlanManager.cc
+1
-1
BluetoothLink.cc
src/comm/BluetoothLink.cc
+1
-1
QGCFlightGearLink.cc
src/comm/QGCFlightGearLink.cc
+1
-7
UAS.cc
src/uas/UAS.cc
+1
-1
QGCMAVLinkLogPlayer.cc
src/ui/QGCMAVLinkLogPlayer.cc
+0
-2
No files found.
src/AutoPilotPlugins/APM/APMFlightModesComponentController.cc
View file @
c6c5c403
...
...
@@ -68,7 +68,7 @@ void APMFlightModesComponentController::_rcChannelsChanged(int channelCount, int
for
(
int
i
=
0
;
i
<
6
;
i
++
)
{
_rgChannelOptionEnabled
[
i
]
=
QVariant
(
false
);
channelValue
=
pwmValues
[
i
+
6
];
if
(
channelValue
!=
-
1
&&
channelValue
>
1800
)
{
if
(
channelValue
>
1800
)
{
_rgChannelOptionEnabled
[
i
]
=
QVariant
(
true
);
}
}
...
...
src/MissionManager/FixedWingLandingComplexItem.cc
View file @
c6c5c403
...
...
@@ -322,7 +322,7 @@ bool FixedWingLandingComplexItem::scanForItem(QmlObjectListModel* visualItems, V
}
MissionItem
&
missionItemDoLandStart
=
item
->
missionItem
();
if
(
missionItemDoLandStart
.
command
()
!=
MAV_CMD_DO_LAND_START
||
missionItemDoLandStart
.
param1
()
!=
0
||
missionItemDoLandStart
.
param2
()
!=
0
||
missionItemDoLandStart
.
param3
()
!=
0
||
missionItemDoLandStart
.
param4
()
!=
0
||
missionItemDoLandStart
.
param5
()
!=
0
||
missionItemDoLandStart
.
param6
()
!=
0
||
missionItemDoLandStart
.
param6
()
!=
0
)
{
missionItemDoLandStart
.
param1
()
!=
0
||
missionItemDoLandStart
.
param2
()
!=
0
||
missionItemDoLandStart
.
param3
()
!=
0
||
missionItemDoLandStart
.
param4
()
!=
0
||
missionItemDoLandStart
.
param5
()
!=
0
||
missionItemDoLandStart
.
param6
()
!=
0
)
{
return
false
;
}
...
...
src/MissionManager/PlanManager.cc
View file @
c6c5c403
...
...
@@ -712,7 +712,7 @@ QString PlanManager::_ackTypeToString(AckType_t ackType)
QString
PlanManager
::
_lastMissionReqestString
(
MAV_MISSION_RESULT
result
)
{
if
(
_lastMissionRequest
!=
-
1
&&
_lastMissionRequest
>=
0
&&
_lastMissionRequest
<
_writeMissionItems
.
count
())
{
if
(
_lastMissionRequest
>=
0
&&
_lastMissionRequest
<
_writeMissionItems
.
count
())
{
MissionItem
*
item
=
_writeMissionItems
[
_lastMissionRequest
];
switch
(
result
)
{
...
...
src/comm/BluetoothLink.cc
View file @
c6c5c403
...
...
@@ -244,8 +244,8 @@ BluetoothConfiguration::BluetoothConfiguration(const QString& name)
BluetoothConfiguration
::
BluetoothConfiguration
(
BluetoothConfiguration
*
source
)
:
LinkConfiguration
(
source
)
,
_deviceDiscover
(
NULL
)
,
_device
(
source
->
device
())
{
_device
=
source
->
device
();
}
BluetoothConfiguration
::~
BluetoothConfiguration
()
...
...
src/comm/QGCFlightGearLink.cc
View file @
c6c5c403
...
...
@@ -544,15 +544,9 @@ bool QGCFlightGearLink::parseUIArguments(QString uiArgs, QStringList& argList)
}
else
if
(
chr
==
'\"'
)
{
// Flip the state of being in a quoted string. Note that we specifically do not add the
// quote to the string. This replicates standards command line parsing behaviour.
if
(
chr
==
'\"'
)
{
inQuotedString
=
!
inQuotedString
;
}
inQuotedString
=
!
inQuotedString
;
previousSpace
=
false
;
}
else
{
// Flip the state of being in a quoted string
if
(
chr
==
'\"'
)
{
inQuotedString
=
!
inQuotedString
;
}
previousSpace
=
false
;
currentArg
+=
chr
;
}
...
...
src/uas/UAS.cc
View file @
c6c5c403
...
...
@@ -184,7 +184,7 @@ void UAS::receiveMessage(mavlink_message_t message)
// Only accept messages from this system (condition 1)
// and only then if a) attitudeStamped is disabled OR b) attitudeStamped is enabled
// and we already got one attitude packet
if
(
message
.
sysid
==
uasId
&&
(
!
attitudeStamped
||
(
attitudeStamped
&&
(
lastAttitude
!=
0
))
||
message
.
msgid
==
MAVLINK_MSG_ID_ATTITUDE
))
if
(
message
.
sysid
==
uasId
&&
(
!
attitudeStamped
||
lastAttitude
!=
0
||
message
.
msgid
==
MAVLINK_MSG_ID_ATTITUDE
))
{
QString
uasState
;
QString
stateDescription
;
...
...
src/ui/QGCMAVLinkLogPlayer.cc
View file @
c6c5c403
...
...
@@ -82,8 +82,6 @@ void QGCMAVLinkLogPlayer::_selectLogFileForPlayback(void)
return
;
}
LinkInterface
*
createConnectedLink
(
LinkConfiguration
*
config
);
LogReplayLinkConfiguration
*
linkConfig
=
new
LogReplayLinkConfiguration
(
QString
(
"Log Replay"
));
linkConfig
->
setLogFilename
(
logFilename
);
linkConfig
->
setName
(
linkConfig
->
logFilenameShort
());
...
...
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