Skip to content

Commit

Permalink
Revert "remove releative include path and change include path order (#…
Browse files Browse the repository at this point in the history
…678)"

This reverts commit e5ece70.
  • Loading branch information
raphaelscholle committed Apr 2, 2024
1 parent f7f692d commit 0b2a83e
Show file tree
Hide file tree
Showing 46 changed files with 155 additions and 149 deletions.
2 changes: 1 addition & 1 deletion app/osd/horizonladder.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <QQuickItem>
#include <QQuickPaintedItem>
#include <QPainter>
#include "lib/lqtutils_master/lqtutils_prop.h"
#include "../../lib/lqtutils_master/lqtutils_prop.h"

class HorizonLadder : public QQuickPaintedItem {
Q_OBJECT
Expand Down
4 changes: 2 additions & 2 deletions app/telemetry/MavlinkTelemetry.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
#include <thread>

#include "tutil/mavlink_include.h"
#include "lib/lqtutils_master/lqtutils_prop.h"
#include "common/TimeHelper.hpp"
#include "../../lib/lqtutils_master/lqtutils_prop.h"
#include "../common/TimeHelper.hpp"

#include "connection/udp_connection.h"
#include "connection/tcp_connection.h"
Expand Down
2 changes: 1 addition & 1 deletion app/telemetry/action/create_cmd_helper.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef CMD_HELPER_H
#define CMD_HELPER_H

#include "tutil/mavlink_include.h"
#include "../tutil/mavlink_include.h"

// Here we have various util methods to create mavlink_command_long_t commands
namespace cmd::helper{
Expand Down
6 changes: 3 additions & 3 deletions app/telemetry/action/fcaction.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#include "fcaction.h"
#include "qdebug.h"

#include "logging/hudlogmessagesmodel.h"
#include "MavlinkTelemetry.h"
#include "../../logging/hudlogmessagesmodel.h"
#include "../MavlinkTelemetry.h"
#include "impl/cmdsender.h"

#include "create_cmd_helper.hpp"
#include "models/fcmavlinksystem.h"
#include "../models/fcmavlinksystem.h"
#include "tutil/mavlink_enum_to_string.h"

FCAction::FCAction(QObject *parent)
Expand Down
4 changes: 2 additions & 2 deletions app/telemetry/action/fcaction.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#include <QObject>
#include <mutex>

#include "tutil/mavlink_include.h"
#include "lib/lqtutils_master/lqtutils_prop.h"
#include "../tutil/mavlink_include.h"
#include "../../../lib/lqtutils_master/lqtutils_prop.h"

/**
* This is the one and only class from which messages / actions can be sent to the FC.
Expand Down
8 changes: 4 additions & 4 deletions app/telemetry/action/fcmissionhandler.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "fcmissionhandler.h"
#include "tutil/qopenhdmavlinkhelper.hpp"
#include "tutil/telemetryutil.hpp"
#include "MavlinkTelemetry.h"
#include "../tutil/qopenhdmavlinkhelper.hpp"
#include "../tutil/telemetryutil.hpp"
#include "../MavlinkTelemetry.h"

#include "models/fcmavlinkmissionitemsmodel.h"
#include "../models/fcmavlinkmissionitemsmodel.h"

FCMissionHandler::FCMissionHandler(QObject *parent): QObject(parent)
{
Expand Down
4 changes: 2 additions & 2 deletions app/telemetry/action/fcmissionhandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
#include <mutex>
#include <optional>

#include "lib/lqtutils_master/lqtutils_prop.h"
#include "../../../lib/lqtutils_master/lqtutils_prop.h"

#include "tutil/mavlink_include.h"
#include "../tutil/mavlink_include.h"

/**
* Simple class to (semi-reliably) get all the mission waypoints from the FC and more.
Expand Down
4 changes: 2 additions & 2 deletions app/telemetry/action/fcmsgintervalhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

#include "create_cmd_helper.hpp"

#include "logging/hudlogmessagesmodel.h"
#include "../../logging/hudlogmessagesmodel.h"
#include "impl/cmdsender.h"
#include "MavlinkTelemetry.h"
#include "../MavlinkTelemetry.h"

FCMsgIntervalHandler &FCMsgIntervalHandler::instance()
{
Expand Down
2 changes: 1 addition & 1 deletion app/telemetry/action/fcmsgintervalhandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <optional>
#include <qsettings.h>

#include "tutil/mavlink_include.h"
#include "../tutil/mavlink_include.h"

/**
* We need to manually request / set the message interval(s) for specific messages on ardupilot
Expand Down
4 changes: 2 additions & 2 deletions app/telemetry/action/impl/cmdsender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

#include <qdebug.h>

#include "tutil/qopenhdmavlinkhelper.hpp"
#include "MavlinkTelemetry.h"
#include "../../tutil/qopenhdmavlinkhelper.hpp"
#include "../../MavlinkTelemetry.h"
#include "tutil/mavlink_enum_to_string.h"
#include <future>

Expand Down
4 changes: 2 additions & 2 deletions app/telemetry/action/impl/cmdsender.h
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#ifndef CMDSENDER_H
#define CMDSENDER_H

#include "../../tutil/mavlink_include.h"

#include <optional>
#include <functional>
#include <mutex>
#include <list>
#include <thread>
#include <memory>

#include "tutil/mavlink_include.h"

/**
* Simple, threadsafe class for sending mavlink command (long) over a lossy link.
*/
Expand Down
3 changes: 1 addition & 2 deletions app/telemetry/action/impl/xparam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
#include <future>

#include <qdebug.h>

#include "MavlinkTelemetry.h"
#include "../../MavlinkTelemetry.h"

XParam::XParam()
{
Expand Down
2 changes: 1 addition & 1 deletion app/telemetry/action/impl/xparam.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <functional>
#include <vector>

#include "tutil/mavlink_include.h"
#include "../../tutil/mavlink_include.h"

class XParam
{
Expand Down
2 changes: 1 addition & 1 deletion app/telemetry/action/ohdaction.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "ohdaction.h"

#include "tutil/openhd_defines.hpp"
#include "create_cmd_helper.hpp"
#include "../tutil/openhd_defines.hpp"
#include "impl/cmdsender.h"

//#include "../models/aohdsystem.h"
Expand Down
4 changes: 2 additions & 2 deletions app/telemetry/connection/tcp_connection.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef TCPCONNECTION2_H
#define TCPCONNECTION2_H

#include "../tutil/mavlink_include.h"

#include <thread>
#include <memory.h>
#include <atomic>
Expand All @@ -9,8 +11,6 @@
#include <mutex>
#include <functional>

#include "tutil/mavlink_include.h"

// TCP client connection that handles the following edge-case:
// If the server becomes unavailable (no message for more than X seconds)
// disconnect, then continously try re-connecting.
Expand Down
24 changes: 12 additions & 12 deletions app/telemetry/models/aohdsystem.cpp
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
#include "aohdsystem.h"

#include "../../common/StringHelper.hpp"
#include "../../common/TimeHelper.hpp"
#include "QOpenHDVideoHelper.hpp"
#include "tutil/telemetryutil.hpp"
#include "wificard.h"
#include "rcchannelsmodel.h"
#include "camerastreammodel.h"

#include <string>
#include <sstream>
#include <MavlinkTelemetry.h>

#include <logging/logmessagesmodel.h>
#include <logging/hudlogmessagesmodel.h>

#include "common/StringHelper.hpp"
#include "common/TimeHelper.hpp"
#include "QOpenHDVideoHelper.hpp"
#include "tutil/telemetryutil.hpp"
#include "wificard.h"
#include "rcchannelsmodel.h"
#include "camerastreammodel.h"

#include "util/qopenhd.h"
#include "tutil/qopenhdmavlinkhelper.hpp"
#include "../tutil/qopenhdmavlinkhelper.hpp"

#include "util/WorkaroundMessageBox.h"
#include "settings/wblinksettingshelper.h"
#include "settings/mavlinksettingsmodel.h"
#include <../util/WorkaroundMessageBox.h>
#include "../settings/wblinksettingshelper.h"
#include "../settings/mavlinksettingsmodel.h"

#include "openhd_core/platform.hpp"

Expand Down
3 changes: 2 additions & 1 deletion app/telemetry/models/aohdsystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
#include <QQmlContext>
#include <atomic>

#include "../tutil/mavlink_include.h"

#include "util/lqutils_include.h"
#include "tutil/mavlink_include.h"
#include "tutil/openhd_defines.hpp"

/**
Expand Down
13 changes: 7 additions & 6 deletions app/telemetry/models/camerastreammodel.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
#include "camerastreammodel.h"
#include "qdebug.h"
#include "../tutil/telemetryutil.hpp"
#include "../videostreaming/vscommon/QOpenHDVideoHelper.hpp"

#include <regex>
#include <qsettings.h>
#include <qdebug.h>
#include <regex>

#include <logging/hudlogmessagesmodel.h>
#include <logging/logmessagesmodel.h>

#include "tutil/telemetryutil.hpp"
#include "videostreaming/vscommon/QOpenHDVideoHelper.hpp"
#include "logging/hudlogmessagesmodel.h"
#include "logging/logmessagesmodel.h"
#include "openhd_core/camera.hpp"

static std::string video_codec_to_string(int value){
Expand Down
3 changes: 2 additions & 1 deletion app/telemetry/models/camerastreammodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

#include <QObject>

#include "tutil/mavlink_include.h"
#include "../tutil/mavlink_include.h"

#include "util/lqutils_include.h"

// NOTE1: This class exists to avoid duplicated code for primary and secondary camera(stream)-stats displayed in the HUD
Expand Down
17 changes: 11 additions & 6 deletions app/telemetry/models/fcmavlinksystem.cpp
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
#include "fcmavlinksystem.h"
#include "rcchannelsmodel.h"

#include <QDebug>
#include "util/qopenhd.h"

#include "../tutil/geodesi_helper.h"

#include <QDateTime>

#include "util/qopenhd.h"
#include "tutil/geodesi_helper.h"
#include "logging/logmessagesmodel.h"
#include "logging/hudlogmessagesmodel.h"
#include <logging/logmessagesmodel.h>
#include <logging/hudlogmessagesmodel.h>

#include "tutil/qopenhdmavlinkhelper.hpp"
#include "tutil/telemetryutil.hpp"
#include "action/fcaction.h"
#include "rcchannelsmodel.h"

#include "../action/fcaction.h"

#include <QDateTime>

FCMavlinkSystem::FCMavlinkSystem(QObject *parent): QObject(parent) {
m_flight_time_timer = std::make_unique<QTimer>(this);
Expand Down
11 changes: 6 additions & 5 deletions app/telemetry/models/fcmavlinksystem.h
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
#ifndef FC_MAVLINK_SYSTEM_H
#define FC_MAVLINK_SYSTEM_H

#include <atomic>
#include <optional>
#include <memory>

#include <QElapsedTimer>
#include <QObject>
#include <QTimer>
#include <QQmlContext>

#include "tutil/mavlink_include.h"
#include "../tutil/mavlink_include.h"

#include <atomic>
#include <optional>
#include <memory>

#include "util/lqutils_include.h"

/**
Expand Down
4 changes: 2 additions & 2 deletions app/telemetry/models/rcchannelsmodel.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "rcchannelsmodel.h"
#include <qdebug.h>
#include "tutil/qopenhdmavlinkhelper.hpp"
#include "qdebug.h"
#include "../tutil/qopenhdmavlinkhelper.hpp"



Expand Down
2 changes: 1 addition & 1 deletion app/telemetry/models/wificard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include <sstream>

#include "logging/hudlogmessagesmodel.h"
#include "../../logging/hudlogmessagesmodel.h"
#include "tutil/qopenhdmavlinkhelper.hpp"


Expand Down
4 changes: 1 addition & 3 deletions app/telemetry/models/wificard.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
#define WIFICARD_H

#include <memory>

#include <qobject.h>
#include <qtimer.h>

#include "util/lqutils_include.h"
#include "tutil/mavlink_include.h"
#include "../tutil/mavlink_include.h"

// Stats unique per each connected (wifibroadcast) wfi card
// Air has only one card, ground can have one or more card(s)
Expand Down
20 changes: 10 additions & 10 deletions app/telemetry/settings/mavlinksettingsmodel.cpp
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
#include "mavlinksettingsmodel.h"

#include <qdebug.h>
#include <QSettings>
#include <QVariant>

#include "qdebug.h"
#include "documentedparam.h"

#include "util/qopenhd.h"
#include "../../util/qopenhd.h"
#include "improvedintsetting.h"
#include "improvedstringsetting.h"
#include "tutil/openhd_defines.hpp"
#include "action/impl/xparam.h"

#include <QSettings>
#include <QVariant>

#include "../action/impl/xparam.h"
// Dirty
#include "models/openhd_core/camera.hpp"
#include "models/aohdsystem.h"
#include "util/WorkaroundMessageBox.h"
#include "../models/openhd_core/camera.hpp"
#include "../models/aohdsystem.h"
#include "../util/WorkaroundMessageBox.h"

MavlinkSettingsModel &MavlinkSettingsModel::instanceAirCamera()
{
Expand Down
6 changes: 3 additions & 3 deletions app/telemetry/settings/mavlinksettingsmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
#include <mutex>
#include <QJSValue>

#include "tutil/mavlink_include.h"
#include "lib/lqtutils_master/lqtutils_prop.h"
#include "action/impl/xparam.h"
#include "../tutil/mavlink_include.h"
#include "../../../lib/lqtutils_master/lqtutils_prop.h"
#include "../action/impl/xparam.h"

// A QT wrapper around the mavlink extended / non-extended parameters protocoll on the client
// (the side that changes parameter(s) provided by a specific system & component).
Expand Down
Loading

0 comments on commit 0b2a83e

Please sign in to comment.