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
ac8a932f
Unverified
Commit
ac8a932f
authored
Nov 13, 2019
by
Don Gagne
Committed by
GitHub
Nov 13, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8027 from DonLakeFlyer/UnusedCode
Remove unused code
parents
d6c3a1eb
683113a0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
62 deletions
+1
-62
UAS.cc
src/uas/UAS.cc
+0
-41
UAS.h
src/uas/UAS.h
+1
-4
UASInterface.h
src/uas/UASInterface.h
+0
-17
No files found.
src/uas/UAS.cc
View file @
ac8a932f
...
...
@@ -142,39 +142,6 @@ int UAS::getUASID() const
void
UAS
::
receiveMessage
(
mavlink_message_t
message
)
{
if
(
!
components
.
contains
(
message
.
compid
))
{
QString
componentName
;
switch
(
message
.
compid
)
{
case
MAV_COMP_ID_ALL
:
{
componentName
=
"ANONYMOUS"
;
break
;
}
case
MAV_COMP_ID_IMU
:
{
componentName
=
"IMU #1"
;
break
;
}
case
MAV_COMP_ID_CAMERA
:
{
componentName
=
"CAMERA"
;
break
;
}
case
MAV_COMP_ID_MISSIONPLANNER
:
{
componentName
=
"MISSIONPLANNER"
;
break
;
}
}
components
.
insert
(
message
.
compid
,
componentName
);
}
// qDebug() << "UAS RECEIVED from" << message.sysid << "component" << message.compid << "msg id" << message.msgid << "seq no" << message.seq;
// 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
...
...
@@ -1466,14 +1433,6 @@ void UAS::stopHil()
}
#endif
/**
* @rerturn the map of the components
*/
QMap
<
int
,
QString
>
UAS
::
getComponents
()
{
return
components
;
}
void
UAS
::
sendMapRCToParam
(
QString
param_id
,
float
scale
,
float
value0
,
quint8
param_rc_channel_index
,
float
valueMin
,
float
valueMax
)
{
if
(
!
_vehicle
)
{
...
...
src/uas/UAS.h
View file @
ac8a932f
...
...
@@ -52,8 +52,6 @@ public:
/** @brief Get the unique system id */
int
getUASID
()
const
;
/** @brief Get the components */
QMap
<
int
,
QString
>
getComponents
();
/** @brief The time interval the robot is switched on */
quint64
getUptime
()
const
;
...
...
@@ -118,10 +116,9 @@ public:
friend
class
FileManager
;
#endif
protected:
//COMMENTS FOR TEST UNIT
protected:
/// LINK ID AND STATUS
int
uasId
;
///< Unique system ID
QMap
<
int
,
QString
>
components
;
///< IDs and names of all detected onboard components
QList
<
int
>
unknownPackets
;
///< Packet IDs which are unknown and have been received
MAVLinkProtocol
*
mavlink
;
///< Reference to the MAVLink instance
...
...
src/uas/UASInterface.h
View file @
ac8a932f
...
...
@@ -48,8 +48,6 @@ public:
virtual
FileManager
*
getFileManager
()
=
0
;
#endif
virtual
QMap
<
int
,
QString
>
getComponents
()
=
0
;
enum
StartCalibrationType
{
StartCalibrationRadio
,
StartCalibrationGyro
,
...
...
@@ -110,21 +108,6 @@ public slots:
virtual
void
unsetRCToParameterMap
()
=
0
;
signals:
/**
* @brief Update the error count of a device
*
* The error count indicates how many errors occurred during the use of a device.
* Usually a random error from time to time is acceptable, e.g. through electromagnetic
* interferences on device lines like I2C and SPI. A constantly and rapidly increasing
* error count however can help to identify broken cables or misbehaving drivers.
*
* @param uasid System ID
* @param component Name of the component, e.g. "IMU"
* @param device Name of the device, e.g. "SPI0" or "I2C1"
* @param count Errors occurred since system startup
*/
void
errCountChanged
(
int
uasid
,
QString
component
,
QString
device
,
int
count
);
/** @brief The robot is connected **/
void
connected
();
/** @brief The robot is disconnected **/
...
...
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