2018-07-26 18:06:33 +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-07-26 18:06:33 +03:00
|
|
|
*
|
2019-07-30 19:41:32 -07:00
|
|
|
* SPDX-License-Identifier: MIT
|
2018-07-26 18:06:33 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace upm
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @brief Interface for acceleration sensors
|
|
|
|
*/
|
|
|
|
class iAcceleration
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual ~iAcceleration() {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get acceleration values on X, Y and Z axis.
|
|
|
|
* v[0] = X, v[1] = Y, v[2] = Z
|
|
|
|
*
|
2018-09-27 17:33:40 +03:00
|
|
|
* @return vector of 3 floats containing acceleration on each axis in Gs
|
2018-07-26 18:06:33 +03:00
|
|
|
*/
|
|
|
|
virtual std::vector<float> getAcceleration() = 0;
|
|
|
|
};
|
|
|
|
} // upm
|