You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@mynewt.apache.org by "Vipul Rahane (JIRA)" <ji...@apache.org> on 2017/11/03 20:51:00 UTC

[jira] [Resolved] (MYNEWT-861) Sensor per type polling

     [ https://issues.apache.org/jira/browse/MYNEWT-861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vipul Rahane resolved MYNEWT-861.
---------------------------------
    Resolution: Fixed

> Sensor per type polling
> -----------------------
>
>                 Key: MYNEWT-861
>                 URL: https://issues.apache.org/jira/browse/MYNEWT-861
>             Project: Mynewt
>          Issue Type: New Feature
>      Security Level: Public(Viewable by anyone) 
>          Components: Drivers, Sensor Framework
>            Reporter: Vipul Rahane
>            Assignee: Vipul Rahane
>            Priority: Normal
>             Fix For: v1_3_0_rel
>
>
> Support per type polling
> Fix os_time macros by using typedef for signed os_time_t
> Fix stack overflow with bmp280 driver
> Clean and reorganize some parts of the code
> Fix poll rate for multiple sensors
> Adding a poller ram test log which is conditional based on SENSOR_POLL_TEST_LOG
> Configuration example:
> {noformat}
>      struct sensor_type_traits stt_ms_temp;
>      struct sensor_type_traits stt_ms_press;
>      struct sensor_type_traits stt_bmp_temp;
>      struct sensor_type_traits stt_bmp_press;
>  
>      /* Poll rates for MS5837 */
>  
>      sensor_set_poll_rate_ms("ms5837_0", 60);
>  
>      stt_ms_temp = (struct sensor_type_traits) {
>          .stt_sensor_type = SENSOR_TYPE_AMBIENT_TEMPERATURE,
>          .stt_poll_n      = 2
>      };
>  
>      sensor_set_n_poll_rate("ms5837_0", &stt_ms_temp);
>  
>      stt_ms_press = (struct sensor_type_traits) {
>          .stt_sensor_type = SENSOR_TYPE_PRESSURE,
>          .stt_poll_n      = 4
>      };
>  
>      sensor_set_n_poll_rate("ms5837_0", &stt_ms_press);
>  
>      /* Poll rates for BMP280 */
>  
>      sensor_set_poll_rate_ms("bmp280_0", 120);
>  
>      stt_bmp_temp = (struct sensor_type_traits) {
>          .stt_sensor_type = SENSOR_TYPE_AMBIENT_TEMPERATURE,
>          .stt_poll_n      = 2
>      };
>      sensor_set_n_poll_rate("bmp280_0", &stt_bmp_temp);
>  
>      stt_bmp_press = (struct sensor_type_traits) {
>          .stt_sensor_type = SENSOR_TYPE_PRESSURE,
>          .stt_poll_n      = 4
>      };
>  
>      sensor_set_n_poll_rate("bmp280_0", &stt_bmp_press);
>  
>      /* Poll rates for Accelerometer */
>  
>      sensor_set_poll_rate_ms("bma253_0", 180);
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)