I want to read the acceleration sensor value using the example of the ble-hid-keyboard, but if I let you read the acceleration sensor value, Bluetooth will be cut off. Can we solve this problem?
I want to read the acceleration sensor value using the example of the ble-hid-keyboard, but if I let you read the acceleration sensor value, Bluetooth will be cut off. Can we solve this problem?
Hi,
Not easy to see from your code what is causing this issue. There can be many reasons that the Bluetooth connection is broken. Error codes, asserts, priority issues, etc.
Does the chip reset? Are you seeing any error codes on the log? Have you tried debugging the application to see where it fails?
If you can post the full application project, it may be easier to see/test what is causing the issue.
Best regards,
Jørgen
In the code you posted, all calls to functions reading the accelerometer seems to be commented out. Can you post the code showing exactly where you call this code?
for (;;)
{
idle_state_handle();
CalibAccel();
calcDT();
calcAccelYPR();
calcGyroYPR();
calcFilteredYPR();
nrf_delay_ms(50);
}
}
I want the idle and the functions below to run in series and run in parallel at the same time. Is this what you want?
for (;;)
{
idle_state_handle();
CalibAccel();
calcDT();
calcAccelYPR();
calcGyroYPR();
calcFilteredYPR();
nrf_delay_ms(50);
}
}
I want the idle and the functions below to run in series and run in parallel at the same time. Is this what you want?