First of all, hello everybody! I am new to this board and hope my question hasn't been asked a hundred times already (I did search).
I have a problem with a newly arrived IMU brick. Simply: Brickv shows the data, but if I try to use the C example, I don't get any data.
More specifically, after turning on the return codes (imu_set_response_expected_all), I seem to know that I get timeouts.
Any ideas what could be wrong? (I already flashed a new firmware, etc.)
Bests
Boris
Code:
// Enable debugging, i.e. turn on return codes
imu_set_response_expected_all(&imu, true);
// Set period for quaternion callback to 1s
ret = imu_set_quaternion_period(&imu, 10);
if (ret != E_OK)
{
fprintf(stderr,"Error: imu_set_quaternion_period (%d)\n",ret);
exit(ret);
}
Returns:
Error: imu_set_quaternion_period (-1)