Skip to content

Commit

Permalink
Merge pull request #26 from LeonMatthes/patch-1
Browse files Browse the repository at this point in the history
Correct axes remapping of BMA423
  • Loading branch information
sqfmi authored Jan 29, 2021
2 parents b3e11b7 + 2317303 commit 2319591
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/Watchy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -803,4 +804,4 @@ void Watchy::updateFWBegin(){

// time_t t = makeTime(tm);
// return t + FUDGE; //add fudge factor to allow for compile time
// }
// }

0 comments on commit 2319591

Please sign in to comment.