/** \file
 *
 *  Specifies the interface details for the AHRS_sp3003D component in the
 *  SensorModule.
 *
 *  AHRS_sp3003D.h should only be included by AHRS_sp3003D.cpp
 *  Other classes should include AHRS_sp3003DIF.h
 *
 *  Copyright (c) 2007,2008,2009 MBARI
 *  MBARI Proprietary Information.  All Rights Reserved
 */

#ifndef AHRS_sp3003DIF_H_
#define AHRS_sp3003DIF_H_

#include "data/ElementURI.h"

/**
 *  Specifies the interface details for the AHRS_sp3003D component in the
 *  SensorModule.
 *
 *  AHRS_sp3003D.h should only be included by AHRS_sp3003D.cpp
 *  Other classes should include AHRS_sp3003DIF.h
 *
 *  \ingroup modules_sensor
 */
namespace AHRS_sp3003DIF
{
/// Static const for component name
/// (Can be used by other components)
static const Str NAME( "AHRS_sp3003D" );

// Include common ConfigURIs -- must be in namespace and follow definition of NAME
#include "component/HasLoadAtStartupIF.h"
#include "component/HasHardwareIF.h"
#include "component/HasLoadControlIF.h"
#include "component/HasPowerIF.h"
#include "component/HasUartIF.h"

static const DataURI COMPASS_ORIENTATION_READING( NAME, "CompassOrientation", Units::DEGREE );
static const DataURI COMPASS_TEMPERATURE_READING( NAME, "CompassTemperature", Units::CELSIUS );

static const DataURI MX_READING( NAME, "Mx", Units::MILLIGAUSS );
static const DataURI MY_READING( NAME, "My", Units::MILLIGAUSS );
static const DataURI MZ_READING( NAME, "Mz", Units::MILLIGAUSS );
static const DataURI MT_READING( NAME, "Mt", Units::MILLIGAUSS );

static const DataURI AX_READING( NAME, "Ax", Units::METER_PER_SECOND_SQUARED );
static const DataURI AY_READING( NAME, "Ay", Units::METER_PER_SECOND_SQUARED );
static const DataURI AZ_READING( NAME, "Az", Units::METER_PER_SECOND_SQUARED );
static const DataURI AT_READING( NAME, "At", Units::METER_PER_SECOND_SQUARED );

static const ConfigURI MAG_DEVIATION_CFG( NAME, "magDeviation", Units::DEGREE );
static const ConfigURI PITCH_OFFSET_CFG( NAME, "pitchOffset", Units::DEGREE );
static const ConfigURI ROLL_OFFSET_CFG( NAME, "rollOffset", Units::DEGREE );
static const ConfigURI READ_ACCELERATIONS_CFG( NAME, "readAccelerations", Units::BOOL );
static const ConfigURI READ_MAGNETICS_CFG( NAME, "readMagnetics", Units::BOOL );
static const ConfigURI READ_MOUNTING_CFG( NAME, "verticalMounting", Units::BOOL );
}

#endif /*AHRS_sp3003DIF_H_*/
