Esempio n. 1
0
// execution button
// redirect to mission execution window
void MapPlanning::on_executeButton_clicked() {
    MapExecution *mapExecution = new MapExecution(getTableAsStrings());
    this->close();
    mapExecution->showFullScreen();

    //this->done(2);
}
Esempio n. 2
0
void MainWindow::showMissionExecution() {
    MapExecution *mapExecution = new MapExecution();
    QObject::connect(mapExecution, SIGNAL(finished(int)), this, SLOT(checkFinishStatus(int)), Qt::UniqueConnection);
    mapExecution->showFullScreen();

    //Open ConnectionDialog when MissionExecution is opened

    //
    //ConnectionDialog * connectionDialog = new ConnectionDialog();
    //connectionDialog -> show();
}
Esempio n. 3
0
void MainWindow::showMissionExecution(){
    //Temporary FlightPath code - Remove Later

    std::cout << "Attempting to create FlightPath" << std::endl;
    FlightPath *myFlightPath = new FlightPath();


    std::cout << "Filling point 1" << std::endl;
    Protocol::Waypoint wp;
    wp.alt = 10;
    wp.lat = 33;
    wp.lon = -111;
    wp.speed = 10;
    myFlightPath->addNavAction(wp,10);

    std::cout << "Filling point 2" << std::endl;
    wp.alt = 10;
    wp.lat = 34;
    wp.lon = -111;
    wp.speed = 10;
    myFlightPath->addNavAction(wp,20);

    std::cout << "Filling point 3" << std::endl;
    wp.alt = 10;
    wp.lat = 34;
    wp.lon = -110;
    wp.speed = 10;
    myFlightPath->addNavAction(wp,30);

    std::cout << "Done creating FlightPath" << std::endl;

    //End temporary FlightPath code



    MapExecution *mapExecution = new MapExecution(myFlightPath);
    QObject::connect(mapExecution, SIGNAL(finished(int)), this, SLOT(checkFinishStatus(int)), Qt::UniqueConnection);
    mapExecution->showFullScreen();

    //Open ConnectionDialog when MissionExecution is opened

    //
    //ConnectionDialog * connectionDialog = new ConnectionDialog();
    //connectionDialog -> show();
}