mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-17 02:52:12 +01:00
Fixed small typo: "sequencial" vs. "sequential"
This commit is contained in:
parent
d7d670036b
commit
cae53915d3
@ -87,7 +87,7 @@ PlotData::~PlotData()
|
||||
}
|
||||
|
||||
|
||||
bool SequencialPlotData::append(UAVObject* obj)
|
||||
bool SequentialPlotData::append(UAVObject* obj)
|
||||
{
|
||||
if (uavObject == obj->getName()) {
|
||||
|
||||
|
@ -44,7 +44,7 @@
|
||||
\brief Defines the different type of plots.
|
||||
*/
|
||||
enum PlotType {
|
||||
SequencialPlot,
|
||||
SequentialPlot,
|
||||
ChronoPlot,
|
||||
UAVObjectPlot,
|
||||
|
||||
@ -93,16 +93,16 @@ signals:
|
||||
};
|
||||
|
||||
/*!
|
||||
\brief The sequencial plot have a fixed size buffer of data. All the curves in one plot
|
||||
\brief The sequential plot have a fixed size buffer of data. All the curves in one plot
|
||||
have the same size buffer.
|
||||
*/
|
||||
class SequencialPlotData : public PlotData
|
||||
class SequentialPlotData : public PlotData
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
SequencialPlotData(QString uavObject, QString uavField)
|
||||
SequentialPlotData(QString uavObject, QString uavField)
|
||||
: PlotData(uavObject, uavField) {}
|
||||
~SequencialPlotData() {}
|
||||
~SequentialPlotData() {}
|
||||
|
||||
/*!
|
||||
\brief Append new data to the plot
|
||||
@ -113,7 +113,7 @@ public:
|
||||
\brief The type of plot
|
||||
*/
|
||||
virtual PlotType plotType() {
|
||||
return SequencialPlot;
|
||||
return SequentialPlot;
|
||||
}
|
||||
|
||||
/*!
|
||||
|
@ -49,8 +49,8 @@ void ScopeGadget::loadConfiguration(IUAVGadgetConfiguration* config)
|
||||
widget->setXWindowSize(sgConfig->dataSize());
|
||||
widget->setRefreshInterval(sgConfig->refreshInterval());
|
||||
|
||||
if(sgConfig->plotType() == SequencialPlot )
|
||||
widget->setupSequencialPlot();
|
||||
if(sgConfig->plotType() == SequentialPlot )
|
||||
widget->setupSequentialPlot();
|
||||
else if(sgConfig->plotType() == ChronoPlot)
|
||||
widget->setupChronoPlot();
|
||||
// else if(sgConfig->plotType() == UAVObjectPlot)
|
||||
|
@ -53,7 +53,7 @@ QWidget* ScopeGadgetOptionsPage::createPage(QWidget *parent)
|
||||
//main layout
|
||||
options_page->setupUi(optionsPageWidget);
|
||||
|
||||
options_page->cmbPlotType->addItem("Sequencial Plot","");
|
||||
options_page->cmbPlotType->addItem("Sequential Plot","");
|
||||
options_page->cmbPlotType->addItem("Chronological Plot","");
|
||||
|
||||
// Fills the combo boxes for the UAVObjects
|
||||
|
@ -269,9 +269,9 @@ void ScopeGadgetWidget::showCurve(QwtPlotItem *item, bool on)
|
||||
mutex.unlock();
|
||||
}
|
||||
|
||||
void ScopeGadgetWidget::setupSequencialPlot()
|
||||
void ScopeGadgetWidget::setupSequentialPlot()
|
||||
{
|
||||
preparePlot(SequencialPlot);
|
||||
preparePlot(SequentialPlot);
|
||||
|
||||
// QwtText title("Index");
|
||||
//// title.setFont(QFont("Helvetica", 20));
|
||||
@ -356,8 +356,8 @@ void ScopeGadgetWidget::addCurvePlot(QString uavObject, QString uavFieldSubField
|
||||
{
|
||||
PlotData* plotData;
|
||||
|
||||
if (m_plotType == SequencialPlot)
|
||||
plotData = new SequencialPlotData(uavObject, uavFieldSubField);
|
||||
if (m_plotType == SequentialPlot)
|
||||
plotData = new SequentialPlotData(uavObject, uavFieldSubField);
|
||||
else if (m_plotType == ChronoPlot)
|
||||
plotData = new ChronoPlotData(uavObject, uavFieldSubField);
|
||||
//else if (m_plotType == UAVObjectPlot)
|
||||
@ -471,7 +471,7 @@ void ScopeGadgetWidget::replotNewData()
|
||||
|
||||
void ScopeGadgetWidget::setupExamplePlot()
|
||||
{
|
||||
preparePlot(SequencialPlot);
|
||||
preparePlot(SequentialPlot);
|
||||
|
||||
// Show the axes
|
||||
|
||||
|
@ -70,7 +70,7 @@ public:
|
||||
ScopeGadgetWidget(QWidget *parent = 0);
|
||||
~ScopeGadgetWidget();
|
||||
|
||||
void setupSequencialPlot();
|
||||
void setupSequentialPlot();
|
||||
void setupChronoPlot();
|
||||
void setupUAVObjectPlot();
|
||||
PlotType plotType(){return m_plotType;}
|
||||
|
Loading…
x
Reference in New Issue
Block a user