04-04-2021 06:25 PM
Hello,
I am using a BNO055 to track the orientation of a skateboard. While using the "sensorAPI" example given by the BNO library, which output is the orientation, I am getting 0 to 360° for x and Z axis but just -90 to 90° for Y. Why is it doing that. The problem for me is, that 135° and 45° are the same.. both times 45.
I think i am missing some information.
Thanks for any help!
04-12-2021 03:53 AM
Hi Sir:
Please read BNO055 datasheet 3.4 Axis remap to know how to configure and remap axis sign and map, according to different sensor placement.
The corresponding registers is Register Map Page0, register address 0x42-0x43.
I don't konw whether there is the operation interface n the Arduino IDE project and how to set them i, but if not the relevant function, maybe you need download BNO055 api, find and port these code into your projrect.
05-07-2021 12:46 PM
Thanks for the reply!
I looked into the datasheet and I know which position i need.
it would be P5. But yeah I am not sure how i get the sensor to do what I want.
bno055_set_operation_mode(OPERATION_MODE_CONFIG);
AXIS_REMAP_CONFIG 0x21;
AXIS_REMAP_SIGN 0x01;
I tried this code above, but AXIS_REMAP_CONFIG is not useable without any further set up.
Maybe someone already did this in C++?
05-08-2021 03:41 AM
Hi Sir:
This setting can be done with C code on my stm32 platform, recommend you to download BNO055 api code to have a try.