Read acc config
I want to read the acceleration config to check whether ODR and range are correctly set. I have the following approach:
MetaWear.mbl_mw_acc_read_config(board, MetaWear.FnVoid_MetaWearBoardP_Int.toPointer(dataCallback));
What do I need to do in the Callback function to get the ODR and range values?
Right now I am getting some Buffer back.
let dataCallback = (value) => {
console.log(value);
};
This discussion has been closed.
Comments
Internal acc settings are not exposed.
Set the odr and acc values with their respective enum entries if you want to control the exact settings. You should be doing this every time before collecting data.
What can I do with this function
MetaWear.mbl_mw_acc_read_config
then?That is used for when you are collecting data from a board that was not configured by the current host device or if config settings were not preserved.