Skip to content
Snippets Groups Projects
Commit ac3f80e4 authored by bertucci's avatar bertucci
Browse files

Merge branch 'groundstation_gui_fd_test' of...

Merge branch 'groundstation_gui_fd_test' of https://git.ece.iastate.edu/danc/MicroCART into groundstation_gui_fd_test
parents 511d9500 6d171c32
No related branches found
No related tags found
No related merge requests found
#-------------------------------------------------
#
# Project created by QtCreator 2017-02-23T15:03:45
#
#-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = MicroCART
TEMPLATE = app
LIBS += ../../frontend.a
INCLUDEPATH += ../../src/frontend/
SOURCES += main.cpp\
mainwindow.cpp \
trackerworker.cpp \
controlworker.cpp \
quaditem.cpp \
slotprocess.cpp \
qFlightInstruments.cpp
HEADERS += mainwindow.h \
trackerworker.h \
controlworker.h \
quaditem.h \
slotprocess.h \
qFlightInstruments.h
FORMS += mainwindow.ui
INCLUDEPATH += $$PWD/../../../quad/inc
DEPENDPATH += $$PWD/../../../quad/inc
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../quad/lib/release/ -lgraph_blocks
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../quad/lib/debug/ -lgraph_blocks
else:unix: LIBS += -L$$PWD/../../../quad/lib/ -lgraph_blocks
win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../../../quad/lib/release/libgraph_blocks.a
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../../../quad/lib/debug/libgraph_blocks.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../../../quad/lib/release/graph_blocks.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../../../quad/lib/debug/graph_blocks.lib
else:unix: PRE_TARGETDEPS += $$PWD/../../../quad/lib/libgraph_blocks.a
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../quad/lib/release/ -lcomputation_graph
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../quad/lib/debug/ -lcomputation_graph
else:unix: LIBS += -L$$PWD/../../../quad/lib/ -lcomputation_graph
win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../../../quad/lib/release/libcomputation_graph.a
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../../../quad/lib/debug/libcomputation_graph.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../../../quad/lib/release/computation_graph.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../../../quad/lib/debug/computation_graph.lib
else:unix: PRE_TARGETDEPS += $$PWD/../../../quad/lib/libcomputation_graph.a
RESOURCES += \
resources.qrc
#-------------------------------------------------
#
# Project created by QtCreator 2017-02-23T15:03:45
#
#-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = MicroCART
TEMPLATE = app
LIBS += ../../frontend.a
INCLUDEPATH += ../../src/frontend/
SOURCES += main.cpp\
mainwindow.cpp \
trackerworker.cpp \
controlworker.cpp \
quaditem.cpp \
slotprocess.cpp \
qFlightInstruments.cpp
HEADERS += mainwindow.h \
trackerworker.h \
controlworker.h \
quaditem.h \
slotprocess.h \
graph_blocks.h \
qFlightInstruments.h
FORMS += mainwindow.ui
INCLUDEPATH += $$PWD/../../../quad/inc
DEPENDPATH += $$PWD/../../../quad/inc
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../quad/lib/release/ -lgraph_blocks
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../quad/lib/debug/ -lgraph_blocks
else:unix: LIBS += -L$$PWD/../../../quad/lib/ -lgraph_blocks
win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../../../quad/lib/release/libgraph_blocks.a
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../../../quad/lib/debug/libgraph_blocks.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../../../quad/lib/release/graph_blocks.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../../../quad/lib/debug/graph_blocks.lib
else:unix: PRE_TARGETDEPS += $$PWD/../../../quad/lib/libgraph_blocks.a
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../quad/lib/release/ -lcomputation_graph
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../quad/lib/debug/ -lcomputation_graph
else:unix: LIBS += -L$$PWD/../../../quad/lib/ -lcomputation_graph
win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../../../quad/lib/release/libcomputation_graph.a
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../../../quad/lib/debug/libcomputation_graph.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../../../quad/lib/release/computation_graph.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../../../quad/lib/debug/computation_graph.lib
else:unix: PRE_TARGETDEPS += $$PWD/../../../quad/lib/libcomputation_graph.a
RESOURCES += \
resources.qrc
This diff is collapsed.
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QStringList>
#include <QStandardItemModel>
#include <QGraphicsScene>
#include "quaditem.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
signals:
void connectWorkers();
void disconnectWorkers();
void getParamValue(QString node, QString param);
void getNodeOutput(QString node);
void setParamValue(QString node, QString param, float value);
void getPosAttFromBackend();
private slots:
void on_pbStart_clicked();
void on_pbConnect_clicked();
void on_pbStop_clicked();
void on_chooseBackend_clicked();
void updateTracker(float x, float y, float z, float p, float r, float yaw);
void updatePosAtt();
void newNodes(QStringList blocks);
void newParams(QStringList params);
void newParamValue(QString node, QString param, float val);
void newNodeOutput(QString node, float output);
void newConstantBlocks(QStringList blocks);
void newControlGraph(QString graph);
void on_paramSelect_currentIndexChanged(const QString &arg1);
void on_paramValue_returnPressed();
void on_pbAppendSetpoint_clicked();
void on_pbNextSetpoint_clicked();
void sendSetpoints();
void sendSelectedSetpoint();
void on_pbActualToSetpoint_clicked();
void on_pbDeleteSetpoint_clicked();
void on_pbActualToWaypoint_clicked();
void on_pbMoveUp_clicked();
void on_pbMoveDown_clicked();
void on_pbInsertSetpoint_clicked();
void on_pbSaveWaypoints_clicked();
void on_pbLoadWaypoints_clicked();
void on_xSetpoint_returnPressed();
void on_ySetpoint_returnPressed();
void on_zSetpoint_returnPressed();
void on_posattSrcVrpn_clicked();
void on_posattSrcQuad_clicked();
void on_yawSetpoint_returnPressed();
void backendStarted();
void backendFinished(int exitCode, QProcess::ExitStatus exitStatus);
void backendError(QProcess::ProcessError error);
void backendRead();
void workerConnected();
void workerDisconnected();
private:
Ui::MainWindow *ui;
QStandardItemModel * setpointList;
QTimer * nextSpTimer;
float sp_x;
float sp_y;
float sp_z;
QTimer * trackerTimer;
QTimer * workerStartTimer;
QProcess * backendProcess;
int connectedWorkers;
};
#endif // MAINWINDOW_H
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QStringList>
#include <QStandardItemModel>
#include <QGraphicsScene>
#include "quaditem.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
signals:
void connectWorkers();
void disconnectWorkers();
void getParamValue(QString node, QString param);
void getNodeOutput(QString node);
void setParamValue(QString node, QString param, float value);
void getPosAttFromBackend();
private slots:
void on_pbStart_clicked();
void on_pbConnect_clicked();
void on_pbStop_clicked();
void on_chooseBackend_clicked();
void updateTracker(float x, float y, float z, float p, float r, float yaw);
void updatePosAtt();
void newNodes(QStringList blocks);
void newParams(QStringList params);
void newParamValue(QString node, QString param, float val);
void newNodeOutput(QString node, float output);
void newConstantBlocks(QStringList blocks);
void newControlGraph(QString graph);
void on_paramSelect_currentIndexChanged(const QString &arg1);
void on_paramValue_returnPressed();
void on_pbAppendSetpoint_clicked();
void on_pbNextSetpoint_clicked();
void sendSetpoints();
void sendSelectedSetpoint();
void on_pbActualToSetpoint_clicked();
void on_pbDeleteSetpoint_clicked();
void on_pbActualToWaypoint_clicked();
void on_pbMoveUp_clicked();
void on_pbMoveDown_clicked();
void on_pbInsertSetpoint_clicked();
void on_pbSaveWaypoints_clicked();
void on_pbLoadWaypoints_clicked();
void on_xSetpoint_returnPressed();
void on_run_data_analysis_button_clicked();
void on_ySetpoint_returnPressed();
void on_zSetpoint_returnPressed();
void on_posattSrcVrpn_clicked();
void on_posattSrcQuad_clicked();
void on_yawSetpoint_returnPressed();
void backendStarted();
void connectMatlab();
void backendFinished(int exitCode, QProcess::ExitStatus exitStatus);
void backendError(QProcess::ProcessError error);
void backendRead();
void workerConnected();
void workerDisconnected();
private:
Ui::MainWindow *ui;
QStandardItemModel * setpointList;
QTimer * nextSpTimer;
float sp_x;
float sp_y;
float sp_z;
QTimer * trackerTimer;
QTimer * workerStartTimer;
QProcess * backendProcess;
QProcess * matlabProcess;
int connectedWorkers;
};
#endif // MAINWINDOW_H
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment