APMFollowComponentController.cc 1.05 KB
Newer Older
DonLakeFlyer's avatar
DonLakeFlyer committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
/****************************************************************************
 *
 *   (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 "APMFollowComponentController.h"

const char* APMFollowComponentController::settingsGroup =   "APMFollow";
const char* APMFollowComponentController::angleName =       "angle";
const char* APMFollowComponentController::distanceName =    "distance";
const char* APMFollowComponentController::heightName =      "height";

APMFollowComponentController::APMFollowComponentController(void)
    : _metaDataMap  (FactMetaData::createMapFromJsonFile(QStringLiteral(":/json/APMFollowComponent.FactMetaData.json"), this))
    , _angleFact    (settingsGroup, _metaDataMap[angleName])
    , _distanceFact (settingsGroup, _metaDataMap[distanceName])
    , _heightFact   (settingsGroup, _metaDataMap[heightName])
{

}