1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-17 02:52:12 +01:00

Fixed typo, changed some wording to be clearer.

This commit is contained in:
Kenz Dale 2012-08-29 12:15:27 +02:00
parent 7c49d47046
commit cb377e0f1d
6 changed files with 29 additions and 24 deletions

View File

@ -916,7 +916,7 @@
<baroAltitudeEnabled>false</baroAltitudeEnabled>
<binPath>\home\lafargue\X-Plane 9\X-Plane-i686</binPath>
<dataPath>\usr\share\games\FlightGear</dataPath>
<gcsReciever>true</gcsReciever>
<gcsReceiver>true</gcsReceiver>
<gpsPosRate>100</gpsPosRate>
<gpsPositionEnabled>false</gpsPositionEnabled>
<groundTruthEnabled>true</groundTruthEnabled>
@ -952,7 +952,7 @@
<baroAltitudeEnabled>false</baroAltitudeEnabled>
<binPath>\usr\games\fgfs</binPath>
<dataPath>\usr\share\games\FlightGear</dataPath>
<gcsReciever>true</gcsReciever>
<gcsReceiver>true</gcsReceiver>
<gpsPosRate>100</gpsPosRate>
<gpsPositionEnabled>false</gpsPositionEnabled>
<groundTruthEnabled>true</groundTruthEnabled>
@ -988,7 +988,7 @@
<baroAltitudeEnabled>false</baroAltitudeEnabled>
<binPath>\home\lafargue\X-Plane 9\X-Plane-i686</binPath>
<dataPath>\usr\share\games\FlightGear</dataPath>
<gcsReciever>true</gcsReciever>
<gcsReceiver>true</gcsReceiver>
<gpsPosRate>100</gpsPosRate>
<gpsPositionEnabled>false</gpsPositionEnabled>
<groundTruthEnabled>true</groundTruthEnabled>

View File

@ -60,7 +60,7 @@ HITLConfiguration::HITLConfiguration(QString classId, QSettings* qSettings, QObj
settings.groundTruthRate = 100;
settings.inputCommand = false;
settings.gcsReciever = false;
settings.gcsReceiver = false;
settings.manualControl = false;
settings.manualOutput = false;
settings.minOutputPeriod = 100;
@ -100,7 +100,7 @@ HITLConfiguration::HITLConfiguration(QString classId, QSettings* qSettings, QObj
settings.groundTruthRate = qSettings->value("groundTruthRate").toInt();
settings.inputCommand = qSettings->value("inputCommand").toBool();
settings.gcsReciever = qSettings->value("gcsReciever").toBool();
settings.gcsReceiver = qSettings->value("gcsReceiver").toBool();
settings.manualControl = qSettings->value("manualControl").toBool();
settings.manualOutput = qSettings->value("manualOutput").toBool();
settings.minOutputPeriod = qSettings->value("minOutputPeriod").toInt();
@ -148,7 +148,7 @@ void HITLConfiguration::saveConfig(QSettings* qSettings) const {
qSettings->setValue("groundTruthEnabled", settings.groundTruthEnabled);
qSettings->setValue("groundTruthRate", settings.groundTruthRate);
qSettings->setValue("inputCommand", settings.inputCommand);
qSettings->setValue("gcsReciever", settings.gcsReciever);
qSettings->setValue("gcsReceiver", settings.gcsReceiver);
qSettings->setValue("manualControl", settings.manualControl);
qSettings->setValue("manualOutput", settings.manualOutput);
qSettings->setValue("minOutputPeriod", settings.minOutputPeriod);

View File

@ -78,7 +78,10 @@ QWidget *HITLOptionsPage::createPage(QWidget *parent)
m_optionsPage->executablePath->setPath(config->Settings().binPath);
m_optionsPage->dataPath->setPath(config->Settings().dataPath);
m_optionsPage->manualControl->setChecked(config->Settings().manualControl);
m_optionsPage->manualControlRadioButton->setChecked(config->Settings().manualControl);
m_optionsPage->gcsReceiverRadioButton->setChecked(config->Settings().gcsReceiver);
m_optionsPage->startSim->setChecked(config->Settings().startSim);
m_optionsPage->noiseCheckBox->setChecked(config->Settings().addNoise);
@ -105,6 +108,7 @@ QWidget *HITLOptionsPage::createPage(QWidget *parent)
m_optionsPage->minOutputPeriodSpinbox->setValue(config->Settings().minOutputPeriod);
return optionsPageWidget;
}
@ -116,7 +120,6 @@ void HITLOptionsPage::apply()
settings.simulatorId = m_optionsPage->chooseFlightSimulator->itemData(i).toString();
settings.binPath = m_optionsPage->executablePath->path();
settings.dataPath = m_optionsPage->dataPath->path();
settings.manualControl = m_optionsPage->manualControl->isChecked();
settings.startSim = m_optionsPage->startSim->isChecked();
settings.addNoise = m_optionsPage->noiseCheckBox->isChecked();
settings.hostAddress = m_optionsPage->hostAddress->text();
@ -145,6 +148,8 @@ void HITLOptionsPage::apply()
settings.minOutputPeriod = m_optionsPage->minOutputPeriodSpinbox->value();
settings.manualControl = m_optionsPage->manualControlRadioButton->isChecked();
settings.gcsReceiver = m_optionsPage->gcsReceiverRadioButton->isChecked();
config->setSimulatorSettings(settings);
}

View File

@ -529,7 +529,7 @@
<item>
<widget class="QLabel" name="label_8">
<property name="text">
<string>Refresh rate</string>
<string>Refresh rate:</string>
</property>
</widget>
</item>
@ -685,7 +685,7 @@
<item>
<widget class="QLabel" name="label_7">
<property name="text">
<string>Refresh rate</string>
<string>Refresh rate:</string>
</property>
</widget>
</item>
@ -750,7 +750,7 @@
<bool>true</bool>
</property>
<property name="text">
<string>Refresh rate</string>
<string>Refresh rate:</string>
</property>
</widget>
</item>
@ -867,7 +867,7 @@
<item row="0" column="0">
<widget class="QLabel" name="label_11">
<property name="text">
<string>Range detectioon</string>
<string>Range detection:</string>
</property>
</widget>
</item>
@ -890,7 +890,7 @@
<item row="1" column="0">
<widget class="QLabel" name="label_12">
<property name="text">
<string>Refresh rate</string>
<string>Refresh rate:</string>
</property>
</widget>
</item>
@ -927,7 +927,7 @@
<bool>true</bool>
</property>
<property name="title">
<string>Map command from simulator</string>
<string>Map command...</string>
</property>
<property name="flat">
<bool>true</bool>
@ -936,7 +936,7 @@
<bool>true</bool>
</property>
<property name="checked">
<bool>false</bool>
<bool>true</bool>
</property>
<layout class="QVBoxLayout" name="verticalLayout_5">
<property name="spacing">
@ -952,7 +952,7 @@
<number>0</number>
</property>
<item>
<widget class="QRadioButton" name="gcsReciever">
<widget class="QRadioButton" name="gcsReceiverRadioButton">
<property name="font">
<font>
<weight>75</weight>
@ -960,7 +960,7 @@
</font>
</property>
<property name="text">
<string>to GCSReciver</string>
<string>from simulator to hardware (via GCSReceiver)</string>
</property>
<property name="checked">
<bool>true</bool>
@ -968,12 +968,12 @@
</widget>
</item>
<item>
<widget class="QRadioButton" name="manualControl">
<widget class="QRadioButton" name="manualControlRadioButton">
<property name="enabled">
<bool>false</bool>
<bool>true</bool>
</property>
<property name="text">
<string>to ManualCtrl (not implemented)</string>
<string>from hardware to simulator (via ManualCtrl)</string>
</property>
</widget>
</item>
@ -991,7 +991,7 @@
<bool>true</bool>
</property>
<property name="text">
<string>Maximum output rate</string>
<string>Maximum GCS to hardware output rate:</string>
</property>
</widget>
</item>
@ -1001,7 +1001,7 @@
<bool>true</bool>
</property>
<property name="toolTip">
<string>0 - update once, or every N seconds</string>
<string>Set the maximum rate at which GCS sends simulator data to the hardware</string>
</property>
<property name="suffix">
<string>ms</string>

View File

@ -565,7 +565,7 @@ void Simulator::updateUAVOs(Output2OP out){
}
if (settings.gcsReciever) {
if (settings.gcsReceiver) {
// static QTime gcsRcvrTime = currentTime;
// if (!settings.manualOutput || gcsRcvrTime.msecsTo(currentTime) >= settings.outputRate) {
// GCSReceiver::DataFields gcsRcvrData;

View File

@ -136,7 +136,7 @@ typedef struct _CONNECTION
quint16 gpsPosRate;
bool inputCommand;
bool gcsReciever;
bool gcsReceiver;
bool manualControl;
bool manualOutput;
quint16 minOutputPeriod;