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
fc33708b
Unverified
Commit
fc33708b
authored
Dec 24, 2019
by
Don Gagne
Committed by
GitHub
Dec 24, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8168 from DonLakeFlyer/DistanceSensor
Distance sensor
parents
d6225972
01edabdc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
22 deletions
+1
-22
QGCCommon.pri
QGCCommon.pri
+0
-1
Vehicle.cc
src/Vehicle/Vehicle.cc
+1
-13
Vehicle.h
src/Vehicle/Vehicle.h
+0
-8
No files found.
QGCCommon.pri
View file @
fc33708b
...
...
@@ -181,7 +181,6 @@ installer {
# Setup our supported build flavors
message($$CONFIG)
CONFIG(debug, debug|release) {
message(Debug flavor)
CONFIG += DebugBuild
...
...
src/Vehicle/Vehicle.cc
View file @
fc33708b
...
...
@@ -1030,17 +1030,7 @@ void Vehicle::_handleDistanceSensor(mavlink_message_t& message)
{
mavlink_distance_sensor_t
distanceSensor
;
mavlink_msg_distance_sensor_decode
(
&
message
,
&
distanceSensor
);
\
if
(
!
_distanceSensorFactGroup
.
idSet
())
{
_distanceSensorFactGroup
.
setIdSet
(
true
);
_distanceSensorFactGroup
.
setId
(
distanceSensor
.
id
);
}
if
(
_distanceSensorFactGroup
.
id
()
!=
distanceSensor
.
id
)
{
// We can only handle a single sensor reporting
return
;
}
mavlink_msg_distance_sensor_decode
(
&
message
,
&
distanceSensor
);
struct
orientation2Fact_s
{
MAV_SENSOR_ORIENTATION
orientation
;
...
...
@@ -4354,8 +4344,6 @@ VehicleDistanceSensorFactGroup::VehicleDistanceSensorFactGroup(QObject* parent)
,
_rotationYaw315Fact
(
0
,
_rotationYaw315FactName
,
FactMetaData
::
valueTypeDouble
)
,
_rotationPitch90Fact
(
0
,
_rotationPitch90FactName
,
FactMetaData
::
valueTypeDouble
)
,
_rotationPitch270Fact
(
0
,
_rotationPitch270FactName
,
FactMetaData
::
valueTypeDouble
)
,
_idSet
(
false
)
,
_id
(
0
)
{
_addFact
(
&
_rotationNoneFact
,
_rotationNoneFactName
);
_addFact
(
&
_rotationYaw45Fact
,
_rotationYaw45FactName
);
...
...
src/Vehicle/Vehicle.h
View file @
fc33708b
...
...
@@ -76,11 +76,6 @@ public:
Fact
*
rotationPitch90
(
void
)
{
return
&
_rotationPitch90Fact
;
}
Fact
*
rotationPitch270
(
void
)
{
return
&
_rotationPitch270Fact
;
}
bool
idSet
(
void
)
{
return
_idSet
;
}
void
setIdSet
(
bool
idSet
)
{
_idSet
=
idSet
;
}
uint8_t
id
(
void
)
{
return
_id
;
}
void
setId
(
uint8_t
id
)
{
_id
=
id
;
}
static
const
char
*
_rotationNoneFactName
;
static
const
char
*
_rotationYaw45FactName
;
static
const
char
*
_rotationYaw90FactName
;
...
...
@@ -103,9 +98,6 @@ private:
Fact
_rotationYaw315Fact
;
Fact
_rotationPitch90Fact
;
Fact
_rotationPitch270Fact
;
bool
_idSet
;
// true: _id is set to seen sensor id
uint8_t
_id
;
// The id for the sensor being tracked. Current support for only a single sensor.
};
class
VehicleSetpointFactGroup
:
public
FactGroup
...
...
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