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
a7774f1b
Commit
a7774f1b
authored
Feb 09, 2020
by
Don Gagne
Committed by
GitHub
Feb 09, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8302 from DonLakeFlyer/SiKRadioMavlink2
Disable SiK Radio mavlink 1 downgrade code
parents
0fd4d7b0
a0873a7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
MAVLinkProtocol.cc
src/comm/MAVLinkProtocol.cc
+6
-0
No files found.
src/comm/MAVLinkProtocol.cc
View file @
a7774f1b
...
...
@@ -319,6 +319,11 @@ void MAVLinkProtocol::receiveBytes(LinkInterface* link, QByteArray b)
emit
vehicleHeartbeatInfo
(
link
,
_message
.
sysid
,
_message
.
compid
,
highLatency2
.
autopilot
,
highLatency2
.
type
);
}
#if 0
// Given the current state of SiK Radio firmwares there is no way to make the code below work.
// The ArduPilot implementation of SiK Radio firmware always sends MAVLINK_MSG_ID_RADIO_STATUS as a mavlink 1
// packet even if the vehicle is sending Mavlink 2.
// Detect if we are talking to an old radio not supporting v2
mavlink_status_t* mavlinkStatus = mavlink_get_channel_status(mavlinkChannel);
if (_message.msgid == MAVLINK_MSG_ID_RADIO_STATUS && _radio_version_mismatch_count != -1) {
...
...
@@ -337,6 +342,7 @@ void MAVLinkProtocol::receiveBytes(LinkInterface* link, QByteArray b)
qDebug() << "Switching outbound to mavlink 1.0 due to incoming mavlink 1.0 packet:" << mavlinkStatus << mavlinkChannel << mavlinkStatus->flags;
mavlinkStatus->flags |= MAVLINK_STATUS_FLAG_OUT_MAVLINK1;
}
#endif
// Update MAVLink status on every 32th packet
if
((
totalReceiveCounter
[
mavlinkChannel
]
&
0x1F
)
==
0
)
{
...
...
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