cfe21103ea
These are functions for converting acceleration due to gravity to angles in degrees, and some statistical analysis including the mean and variance.
11 lines
187 B
C++
11 lines
187 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
namespace Pinetime {
|
|
namespace Utility {
|
|
// returns the arcsin of `arg`. asin(-32767) = -90, asin(32767) = 90
|
|
int16_t Asin(int16_t arg);
|
|
}
|
|
}
|