Commit ce5e1c30 authored by patrick pereira's avatar patrick pereira 🏃

mavlinkconnection: Remove const from functions that are using non const signal/slots

Signed-off-by: patrick pereira's avatarPatrick José Pereira <patrickelectric@gmail.com>
parent 39bf8cb9
Pipeline #24788 passed with stage
in 5 minutes and 26 seconds
......@@ -36,7 +36,7 @@ MAVLinkConnection::MAVLinkConnection(const QString &vehicleName, QObject *parent
heartbeatTimer->start(1000);
}
void MAVLinkConnection::sendByteArray(const QByteArray &byteArray) const
void MAVLinkConnection::sendByteArray(const QByteArray &byteArray)
{
if (m_controlSocket) {
for (const auto &sender : m_senders) {
......
......@@ -85,7 +85,7 @@ public:
explicit MAVLinkConnection(const QString &vehicleName, QObject *parent = nullptr);
~MAVLinkConnection() = default;
template<typename T> constexpr void sendMessage(const T &message) const
template<typename T> constexpr void sendMessage(const T &message)
{
if constexpr (std::is_same<T, mavlink_message_t>::value) {
const int length = mavlink_msg_to_send_buffer(m_buffer, &message);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment