PlanElementController.cc 1.09 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
    : QObject(parent)
19 20 21
    , _masterController(masterController)
    , _controllerVehicle(masterController->controllerVehicle())
    , _managerVehicle(masterController->managerVehicle())
22 23 24 25 26 27 28 29 30 31 32 33 34 35
    , _editMode(false)
{

}

PlanElementController::~PlanElementController()
{

}

void PlanElementController::start(bool editMode)
{
    _editMode = editMode;
}
DonLakeFlyer's avatar
DonLakeFlyer committed
36 37 38 39 40

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