From 23173035225f643065c90bd6a80830e78e801e7c Mon Sep 17 00:00:00 2001 From: Leon Matthes Date: Fri, 29 Jan 2021 13:50:36 +0100 Subject: [PATCH] Correct axes remapping of BMA423 Wrist detection now also works well. --- src/Watchy.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Watchy.cpp b/src/Watchy.cpp index bdf4e18..6e13b6e 100644 --- a/src/Watchy.cpp +++ b/src/Watchy.cpp @@ -583,11 +583,12 @@ void Watchy::_bmaConfig(){ struct bma423_axes_remap remap_data; remap_data.x_axis = 1; - remap_data.x_axis_sign = 0; + remap_data.x_axis_sign = 0xFF; remap_data.y_axis = 0; - remap_data.y_axis_sign = 0; - remap_data.z_axis = 2; - remap_data.z_axis_sign = 0; + remap_data.y_axis_sign = 0xFF; + remap_data.z_axis = 2; + remap_data.z_axis_sign = 0xFF; + // Need to raise the wrist function, need to set the correct axis sensor.setRemapAxes(&remap_data); @@ -803,4 +804,4 @@ void Watchy::updateFWBegin(){ // time_t t = makeTime(tm); // return t + FUDGE; //add fudge factor to allow for compile time -// } \ No newline at end of file +// }