diff --git a/Accelerometer.h b/Accelerometer.h deleted file mode 100644 index eb2b611..0000000 --- a/Accelerometer.h +++ /dev/null @@ -1,41 +0,0 @@ -#pragma once - -#include "Sensor.h" - -namespace Passer { -namespace RoboidControl { - -/// @brief A Sensor which can measure the magnetic field -class Accelerometer : public Sensor { - public: - Accelerometer(){}; - - /// @brief Returns the direction of the acceleration in the horizontal plane - /// @return The direction of the acceleration, negative is left, positive is - /// right - /// @note The horizontal plane is defined as being orthogonal to the gravity - /// vector - /// @note the units (degrees, radians, -1..1, ...) depend on the sensor - float GetHorizontalAccelerationDirection(); - /// @brief Returns the magnitude of the acceleration in the horizontal plane - /// @return The magnitude. This value is never negative. - /// @note the unity (m/s^2, 0..1) depends on the sensor. - float GetHorizontalAccelerationMagnitude(); - - /// @brief This gives the gravity direciton relative to the down direction. - /// @param horizontal the horizontal direction, negative is left, positive is - /// right - /// @param vertical the vertical direction, negative is down, positive is up - /// @note The horizontal plane is defined as being orthogonal to the gravity - /// vector - /// @note the units (degrees, radians, -1..1, ...) depend on the sensor - void GetAccelerationDirection(float* horizontal, float* vertical); - /// @brief The magnitude of the gravity field. - /// @return The magnitude. This value is never negative. - /// @note the unity (m/s^2, 0..1) depends on the sensor. - float GetAccelerationMagnitude(); -}; - -} // namespace RoboidControl -} // namespace Passer -using namespace Passer::RoboidControl; \ No newline at end of file diff --git a/Magnetometer.h b/Magnetometer.h deleted file mode 100644 index 300a3f7..0000000 --- a/Magnetometer.h +++ /dev/null @@ -1,33 +0,0 @@ -#pragma once - -#include "Sensor.h" - -namespace Passer { -namespace RoboidControl { - -/// @brief A Sensor which can measure the magnetic field -class Magnetometer : public Sensor { - public: - Magnetometer(); - - /// @brief Returns the direction of the magnetic field relative to the forward - /// direction - /// @return The direction, negative is to the left, positive is to the right - /// @note The actual unit (degrees, radians, -1..1, ...) depends on the - /// sensor. - virtual float GetDirection(); - /// @brief Returns the inclination of the magnetic field relative to the - /// horizontal plane - /// @return The direction, negative is downward, positive is upward - /// @note The actual unit (degrees, radias, -1..1, ...) depends on the sensor. - virtual float GetInclination(); - - /// @brief Returns the strength of the magnetic field - /// @return The strength. This values should always be positive - /// @note The actual unit (tesla, 0..1, ...) depends on the sensor. - virtual unsigned float GetMagnitude(); -}; - -} // namespace RoboidControl -} // namespace Passer -using namespace Passer::RoboidControl; \ No newline at end of file