2018-10-02 16:49:48 +03:00
|
|
|
/*
|
|
|
|
|
* Author: Serban Waltter <serban.waltter@rinftech.com>
|
|
|
|
|
* Copyright (c) 2018 Intel Corporation.
|
|
|
|
|
*
|
2019-07-30 19:41:32 -07:00
|
|
|
* This program and the accompanying materials are made available under the
|
|
|
|
|
* terms of the The MIT License which is available at
|
|
|
|
|
* https://opensource.org/licenses/MIT.
|
2018-10-02 16:49:48 +03:00
|
|
|
*
|
2019-07-30 19:41:32 -07:00
|
|
|
* SPDX-License-Identifier: MIT
|
2018-10-02 16:49:48 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
|
|
namespace upm
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* @brief Interface for acceleration sensors
|
|
|
|
|
*/
|
|
|
|
|
class iMagnetometer
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
virtual ~iMagnetometer() {}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Return gyroscope data in degrees per second in the form of
|
|
|
|
|
* a floating point vector in micro Tesla.
|
|
|
|
|
*
|
|
|
|
|
* @return A floating point vector containing x, y, and z in
|
|
|
|
|
* that order in micro Tesla.
|
|
|
|
|
*/
|
|
|
|
|
virtual std::vector<float> getMagnetometer() = 0;
|
|
|
|
|
};
|
|
|
|
|
} // upm
|