We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I was attempting to modify this library to also pull the temperature, but I seem to have hit a roadblock. In build_sensor_event_data I was adding
case INV_SENSOR_TYPE_TEMPERATURE: memcpy(&(event.data.temperature.tmp), data, sizeof(event.data.temperature.tmp)); temperature = event.data.temperature.tmp; temp_data_ready = true; break;
where temperature is a float and temp_data_ready is a bool to match the other variables.
temperature
temp_data_ready
in init I added the appropriate lines for the temperature sensor
init
rc = inv_icm20948_set_sensor_period(&icm_device, idd_sensortype_conversion(INV_SENSOR_TYPE_TEMPERATURE), 1000 / settings.temp_frequency); rc = inv_icm20948_enable_sensor(&icm_device, idd_sensortype_conversion(INV_SENSOR_TYPE_TEMPERATURE), settings.enable_temp);
But it seems that only 0 is returned for the data, is there a different sensor that I should be using?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
I was attempting to modify this library to also pull the temperature, but I seem to have hit a roadblock. In build_sensor_event_data I was adding
where
temperature
is a float andtemp_data_ready
is a bool to match the other variables.in
init
I added the appropriate lines for the temperature sensorBut it seems that only 0 is returned for the data, is there a different sensor that I should be using?
The text was updated successfully, but these errors were encountered: