slugshilsim.cc 530 Bytes
Newer Older
1 2
#include "slugshilsim.h"
#include "ui_slugshilsim.h"
3
#include "LinkManager.h"
4 5 6 7 8 9

SlugsHilSim::SlugsHilSim(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::SlugsHilSim)
{
    ui->setupUi(this);
10 11
    linkAdded();

12 13 14 15 16 17
}

SlugsHilSim::~SlugsHilSim()
{
    delete ui;
}
18 19 20 21 22 23 24 25 26 27 28 29

void SlugsHilSim::linkAdded(void){

  ui->cb_mavlinkLinks->clear();

  QList<LinkInterface *> linkList = LinkManager::instance()->getLinks() ;

  for (int i = 0; i< linkList.size(); i++){
    ui->cb_mavlinkLinks->addItem((linkList.takeFirst())->getName());
  }

}