mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 10:46:33 +00:00
Minor changes.
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
#include <QCoreApplication>
|
||||
#include <QThread>
|
||||
#include "config.hpp"
|
||||
#include "localControl.h"
|
||||
#include "remoteControl.h"
|
||||
#include "localControl.hpp"
|
||||
#include "remoteControl.hpp"
|
||||
#include "serialCommand.hpp"
|
||||
#include "serialPort.hpp"
|
||||
|
||||
@@ -11,6 +11,8 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
QCoreApplication app(argc, argv);
|
||||
QCommandLineParser parser;
|
||||
parser.addHelpOption();
|
||||
parser.addVersionOption();
|
||||
QCommandLineOption lOption(QStringList() << "l", "Use local mode");
|
||||
parser.addOption(lOption);
|
||||
QCommandLineOption pOption(QStringList() << "p", "Use serial port", "value");
|
||||
@@ -24,9 +26,11 @@ int main(int argc, char *argv[])
|
||||
if (parser.isSet(pOption)) {
|
||||
useSerialPort = parser.value(pOption);
|
||||
}
|
||||
qDebug() << useRemoteMode;
|
||||
qDebug() << useSerialPort;
|
||||
|
||||
SerialCommand serialCommand;
|
||||
SerialPort serialPort(useSerialPort);
|
||||
SerialCommand serialCommand;
|
||||
Config::setInitalValues(&serialPort, &serialCommand);
|
||||
|
||||
// Remote mode will read commands from pipe
|
||||
|
||||
Reference in New Issue
Block a user