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
2e552b3a
Commit
2e552b3a
authored
Apr 15, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Vehicle::versionNotSetValue
parent
2f149c59
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
APMFirmwarePlugin.cc
src/FirmwarePlugin/APM/APMFirmwarePlugin.cc
+1
-1
Vehicle.cc
src/Vehicle/Vehicle.cc
+6
-6
Vehicle.h
src/Vehicle/Vehicle.h
+1
-0
No files found.
src/FirmwarePlugin/APM/APMFirmwarePlugin.cc
View file @
2e552b3a
...
...
@@ -313,7 +313,7 @@ bool APMFirmwarePlugin::_handleStatusText(Vehicle* vehicle, mavlink_message_t* m
mavlink_statustext_t
statusText
;
mavlink_msg_statustext_decode
(
message
,
&
statusText
);
if
(
vehicle
->
firmwareMajorVersion
()
==
-
1
||
statusText
.
severity
<
MAV_SEVERITY_NOTICE
)
{
if
(
vehicle
->
firmwareMajorVersion
()
==
Vehicle
::
versionNotSetValue
||
statusText
.
severity
<
MAV_SEVERITY_NOTICE
)
{
messageText
=
_getMessageText
(
message
);
qCDebug
(
APMFirmwarePluginLog
)
<<
messageText
;
...
...
src/Vehicle/Vehicle.cc
View file @
2e552b3a
...
...
@@ -121,9 +121,9 @@ Vehicle::Vehicle(LinkInterface* link,
,
_messageSeq
(
0
)
,
_compID
(
0
)
,
_heardFrom
(
false
)
,
_firmwareMajorVersion
(
-
1
)
,
_firmwareMinorVersion
(
-
1
)
,
_firmwarePatchVersion
(
-
1
)
,
_firmwareMajorVersion
(
versionNotSetValue
)
,
_firmwareMinorVersion
(
versionNotSetValue
)
,
_firmwarePatchVersion
(
versionNotSetValue
)
,
_rollFact
(
0
,
_rollFactName
,
FactMetaData
::
valueTypeDouble
)
,
_pitchFact
(
0
,
_pitchFactName
,
FactMetaData
::
valueTypeDouble
)
,
_headingFact
(
0
,
_headingFactName
,
FactMetaData
::
valueTypeDouble
)
...
...
@@ -291,9 +291,9 @@ Vehicle::Vehicle(QObject* parent)
,
_messageSeq
(
0
)
,
_compID
(
0
)
,
_heardFrom
(
false
)
,
_firmwareMajorVersion
(
-
1
)
,
_firmwareMinorVersion
(
-
1
)
,
_firmwarePatchVersion
(
-
1
)
,
_firmwareMajorVersion
(
versionNotSetValue
)
,
_firmwareMinorVersion
(
versionNotSetValue
)
,
_firmwarePatchVersion
(
versionNotSetValue
)
,
_rollFact
(
0
,
_rollFactName
,
FactMetaData
::
valueTypeDouble
)
,
_pitchFact
(
0
,
_pitchFactName
,
FactMetaData
::
valueTypeDouble
)
,
_headingFact
(
0
,
_headingFactName
,
FactMetaData
::
valueTypeDouble
)
...
...
src/Vehicle/Vehicle.h
View file @
2e552b3a
...
...
@@ -524,6 +524,7 @@ public:
int
firmwareMinorVersion
(
void
)
const
{
return
_firmwareMinorVersion
;
}
int
firmwarePatchVersion
(
void
)
const
{
return
_firmwarePatchVersion
;
}
void
setFirmwareVersion
(
int
majorVersion
,
int
minorVersion
,
int
patchVersion
);
static
const
int
versionNotSetValue
=
-
1
;
public
slots
:
void
setLatitude
(
double
latitude
);
...
...
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