Skip to content

Commit

Permalink
Moved QuadControl to top-level directory
Browse files Browse the repository at this point in the history
  • Loading branch information
thomask77 committed Feb 18, 2015
1 parent d764b2b commit b910735
Show file tree
Hide file tree
Showing 185 changed files with 92 additions and 84 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*~
*.bak
*.tmp
build-*
.project
.cproject
.settings
Expand Down
14 changes: 7 additions & 7 deletions Bootloader/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@ TARGET = $(OBJDIR)/f00b00t

# Define all C source files (dependencies are generated automatically)
#
INCDIRS += .
INCDIRS += Bootloader

SOURCES += Bootloader/small_printf.c
SOURCES += Bootloader/main.c
SOURCES += Bootloader/board.c
SOURCES += Bootloader/uart.c
SOURCES += Bootloader/msg_packet.c
SOURCES += Bootloader/version.c

SHARED_DIR = Shared
INCDIRS += $(SHARED_DIR)
SOURCES += $(SHARED_DIR)/cobsr.c
SOURCES += $(SHARED_DIR)/errors.c
SOURCES += $(SHARED_DIR)/crc16_sm.c
SOURCES += $(SHARED_DIR)/crc32_sm.c
SOURCES += Shared/cobsr.c
SOURCES += Shared/errors.c
SOURCES += Shared/crc16_sm.c
SOURCES += Shared/crc32_sm.c

# Standard peripheral library
#
Expand Down Expand Up @@ -160,7 +160,7 @@ MKDIR = mkdir
DOXYGEN = doxygen
SUBWCREV = SubWCRev
STLINK = Tools/st-link/ST-LINK_CLI.exe
POSTLD = Tools/add_version_info/add_version_info.py -q
POSTLD = Tools/add_version_info.py # -q

# Compiler flags to generate dependency files
#
Expand Down
6 changes: 3 additions & 3 deletions Bootloader/main.c
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#include "board.h"
#include "uart.h"
#include "crc32_sm.h"
#include "msg_packet.h"
#include "stm32f4xx.h"
#include "version.h"
#include "small_printf.h"

#include "msg_structs.h"
#include "errors.h"
#include "Shared/crc32_sm.h"
#include "Shared/msg_structs.h"
#include "Shared/errors.h"

#include <string.h>
#include <stdio.h>
Expand Down
7 changes: 4 additions & 3 deletions Bootloader/msg_packet.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#include "msg_packet.h"
#include "crc16_sm.h"
#include "uart.h"
#include "board.h"
#include "cobsr.h"
#include "errors.h"

#include "Shared/crc16_sm.h"
#include "Shared/cobsr.h"
#include "Shared/errors.h"

#define PACKET_TIMEOUT 1000 // [ms]

Expand Down
2 changes: 1 addition & 1 deletion Bootloader/msg_packet.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include <unistd.h>
#include "msg_structs.h"
#include "Shared/msg_structs.h"

int msg_recv(struct msg_header *msg);
int msg_send(struct msg_header *msg);
13 changes: 6 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ TARGET = $(OBJDIR)/drquad

# Define all C source files (dependencies are generated automatically)
#
INCDIRS += .
INCDIRS += Source

SOURCES += Source/main.c
Expand Down Expand Up @@ -61,12 +62,10 @@ SOURCES += Source/filter.c
SOURCES += Source/watchdog.c
SOURCES += Source/version.c

SHARED_DIR = Shared
INCDIRS += $(SHARED_DIR)
SOURCES += $(SHARED_DIR)/cobsr.c
SOURCES += $(SHARED_DIR)/errors.c
SOURCES += $(SHARED_DIR)/crc16.c
SOURCES += $(SHARED_DIR)/crc32.c
SOURCES += Shared/cobsr.c
SOURCES += Shared/errors.c
SOURCES += Shared/crc16.c
SOURCES += Shared/crc32.c

# FatFS
#
Expand Down Expand Up @@ -255,7 +254,7 @@ NM = $(TOOLCHAIN)nm
MKDIR = mkdir
DOXYGEN = doxygen
STLINK = Tools/st-link/ST-LINK_CLI.exe
POSTLD = Tools/add_version_info/add_version_info.py # -q
POSTLD = Tools/add_version_info.py # -q

# Compiler flags to generate dependency files
#
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

#include "AnsiParser.h"

#include <QStringList>


Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
*/

#include "BootProtocol.h"
#include "IntelHexFile.h"
#include "MainWindow.h"

#include "Shared/msg_structs.h"
#include "Shared/errors.h"
#include "Shared/crc32.h"
Expand All @@ -27,6 +24,8 @@
#include <QApplication>
#include <QThread>
#include <QTime>
#include "IntelHexFile.h"
#include "MainWindow.h"


BootProtocol::BootProtocol(Connection &connection, QWidget *parent)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/

#include "Connection.h"

#include <QDebug>
#include <QByteArray>
#include <QTcpSocket>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "AddConnectionDialog.h"

#include "ui_AddConnectionDialog.h"

AddConnectionDialog::AddConnectionDialog(QWidget *parent) :
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@
*/

#include "ConnectionWindow.h"
#include "ui_ConnectionWindow.h"
#include "AddConnectionDialog.h"
#include "TryAction.h"

#include "ui_ConnectionWindow.h"
#include <QSerialPort>
#include <QMessageBox>
#include <QDebug>
#include <QSettings>

#include "../PuTTYLauncher.h"
#include "../TryAction.h"
#include "AddConnectionDialog.h"
#include "MainWindow.h"
#include "PuTTYLauncher.h"


ConnectionWindow::ConnectionWindow(QWidget *parent)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
#ifndef CONNECTIONWINDOW_H
#define CONNECTIONWINDOW_H

#include "WiFlyListener.h"
#include "InterleavedFuture.h"

#include <QMainWindow>
#include <QTreeWidgetItem>
#include <QSerialPortInfo>
#include <QTimer>
#include <QMap>
#include "../InterleavedFuture.h"
#include "../WiFlyListener.h"

namespace Ui {
class ConnectionWindow;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*/

#include "ConsoleWindow.h"

#include "ui_ConsoleWindow.h"

#include <QSerialPort>
Expand All @@ -28,8 +29,8 @@
#include <QMessageBox>
#include <QScrollBar>

#include "MainWindow.h"
#include "TryAction.h"
#include "../MainWindow.h"
#include "../TryAction.h"

static const QBrush ansiPalette[] = {
QBrush(QColor("#222")), QBrush(QColor("#C00")),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#ifndef CONSOLEWINDOW_H
#define CONSOLEWINDOW_H

#include "AnsiParser.h"
#include "Shared/msg_structs.h"

#include <QTimer>
#include <QTextCursor>
#include <QTextCharFormat>
#include <QMainWindow>
#include "../AnsiParser.h"

namespace Ui {
class ConsoleWindow;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@
*/

#include "GLWindow.h"

#include "ui_GLWindow.h"

#include <QSerialPort>
#include <QSerialPortInfo>
#include <QAction>

#include "MainWindow.h"
#include "../MainWindow.h"

GLWindow::GLWindow(QWidget *parent)
: QMainWindow(parent)
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@
*/

#include "MyGLWidget.h"

#include <QGLFormat>

#include "../glut_teapot.h"
#include "../GLTools.h"
#include "glut_teapot.h"

MyGLWidget::MyGLWidget(QWidget *parent)
: QGLWidget(parent)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@
*/

#include "PlotWindow.h"

#include "ui_PlotWindow.h"
#include "MainWindow.h"
#include "qcustomplot.h"

#include <math.h>
#include "../MainWindow.h"


PlotWindow::PlotWindow(QWidget *parent)
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
*/

#include "UpdateWindow.h"
#include "ui_UpdateWindow.h"
#include "TryAction.h"

#include "ui_UpdateWindow.h"
#include <QSettings>
#include <QFileSystemModel>
#include <QCompleter>
Expand All @@ -30,8 +29,9 @@
#include <QByteArray>
#include <QTime>

#include "../IntelHexFile.h"
#include "../TryAction.h"
#include "MainWindow.h"
#include "IntelHexFile.h"

UpdateWindow::UpdateWindow(QWidget *parent)
: QMainWindow(parent)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
#include <QDragEnterEvent>
#include <QDropEvent>
#include <QProgressDialog>
#include "BootProtocol.h"

#include "../BootProtocol.h"

namespace Ui {
class UpdateWindow;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/

#include "IntelHexFile.h"

#include <QFile>


Expand Down
File renamed without changes.
File renamed without changes.
15 changes: 7 additions & 8 deletions Tools/quadcontrol/MainWindow.cpp → QuadControl/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,21 @@
*/

#include "MainWindow.h"
#include "ui_MainWindow.h"

#include "DockWindows/ConnectionWindow.h"
#include "DockWindows/UpdateWindow.h"
#include "DockWindows/ConsoleWindow.h"
#include "DockWindows/GLWindow.h"
#include "DockWindows/PlotWindow.h"

#include "Connection.h"
#include "ui_MainWindow.h"

#include <QAction>
#include <QDockWidget>
#include <QSettings>
#include <QCloseEvent>
#include <QMessageBox>
#include <QDebug>
#include "Connection.h"
#include "DockWindows/ConnectionWindow.h"
#include "DockWindows/ConsoleWindow.h"
#include "DockWindows/GLWindow.h"
#include "DockWindows/PlotWindow.h"
#include "DockWindows/UpdateWindow.h"


MainWindow *mainWindow;
Expand Down
3 changes: 1 addition & 2 deletions Tools/quadcontrol/MainWindow.h → QuadControl/MainWindow.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include "Connection.h"

#include <QMainWindow>
#include <QLabel>
#include <QTimer>
#include <QTime>
#include "Connection.h"


namespace Ui {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/

#include "PuTTYLauncher.h"

#include <QDebug>
#include <QSettings>
#include <QSerialPortInfo>
Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit b910735

Please sign in to comment.