/****************************************************************************
 *
 *   (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])
{

}
