Sygaldry
Loading...
Searching...
No Matches
sygsp-mimu_units: MIMU Units

Copyright 2023 Travis J. West, https://traviswest.ca, Input Devices and Music Interaction Laboratory (IDMIL), Centre for Interdisciplinary Research in Music Media and Technology (CIRMMT), McGill University, Montréal, Canada, and Univ. Lille, Inria, CNRS, Centrale Lille, UMR 9189 CRIStAL, F-59000 Lille, France

SPDX-License-Identifier: MIT

// @#'sygsp-mimu_units.hpp'
/*
Copyright 2023 Travis J. West, https://traviswest.ca, Input Devices and Music
Interaction Laboratory (IDMIL), Centre for Interdisciplinary Research in Music
Media and Technology (CIRMMT), McGill University, Montréal, Canada, and Univ.
Lille, Inria, CNRS, Centrale Lille, UMR 9189 CRIStAL, F-59000 Lille, France
SPDX-License-Identifier: MIT
*/
#pragma once
namespace sygaldry { namespace sygsp {
static constexpr float mss_per_g = 9.80665; // standard gravity according to Wikipedia, citing the International Bureau of Weights and Measures
static constexpr float g_per_mss = 1.0/mss_per_g;
static constexpr float rad_per_deg = std::numbers::pi / 180.0;
static constexpr float deg_per_rad = 180.0 / std::numbers::pi;
} }
// @/
static constexpr float g_per_mss
Definition sygsp-mimu_units.hpp:34
static constexpr float rad_per_deg
Definition sygsp-mimu_units.hpp:40
static constexpr float mss_per_g
Definition sygsp-mimu_units.hpp:28
static constexpr float deg_per_rad
Definition sygsp-mimu_units.hpp:46
# @#'CMakeLists.txt'
set(lib sygsp-mimu_units)
add_library(${lib} INTERFACE)
target_include_directories(${lib} INTERFACE . )
# @/