PlanElementController.cc 1.11 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
/****************************************************************************
 *
 *   (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
 *
 * QGroundControl is licensed according to the terms in the file
 * COPYING.md in the root of the source code directory.
 *
 ****************************************************************************/

#include "PlanElementController.h"
11
#include "PlanMasterController.h"
12
#include "QGCApplication.h"
13
#include "MultiVehicleManager.h"
14 15
#include "SettingsManager.h"
#include "AppSettings.h"
16

17
PlanElementController::PlanElementController(PlanMasterController* masterController, QObject* parent)
18 19
    : QObject           (parent)
    , _masterController (masterController)
20
    , _controllerVehicle(masterController->controllerVehicle())
21 22
    , _managerVehicle   (masterController->managerVehicle())
    , _flyView          (false)
23 24 25 26 27 28 29 30 31
{

}

PlanElementController::~PlanElementController()
{

}

32
void PlanElementController::start(bool flyView)
33
{
34
    _flyView = flyView;
35
}
DonLakeFlyer's avatar
DonLakeFlyer committed
36 37 38 39 40

void PlanElementController::managerVehicleChanged(Vehicle* managerVehicle)
{
    _managerVehicle = managerVehicle;
}