diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-04-03 21:53:27 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-04-03 21:53:27 (GMT) |
| commit | 603d1f38ca3caad0abed2e884bb36504a71b623e (patch) | |
| tree | c40ac3d66fe6a136887f2314d511136b509c35be /src/components/motion/MotionController.h | |
| parent | 96b982fd94b48e441ab3a582bfafc7410bf0cbb1 (diff) | |
Read accelerometer at 100 instead of 10 Hz
Diffstat (limited to 'src/components/motion/MotionController.h')
| -rw-r--r-- | src/components/motion/MotionController.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/components/motion/MotionController.h b/src/components/motion/MotionController.h index 06429c8..23410af 100644 --- a/src/components/motion/MotionController.h +++ b/src/components/motion/MotionController.h @@ -39,6 +39,7 @@ namespace Pinetime { void Init(Pinetime::Drivers::Bma421::DeviceTypes types); inline double GXYZ(double &X, double &Y, double &Z) const { + X = x; Y = y; Z = z; return std::sqrt(X*X + Y*Y + Z*Z); } |
