You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2019/04/29 09:58:58 UTC

[GitHub] [mynewt-core] mariotesi edited a comment on issue #1775: hw/drivers/lis2de12: Added driver support to LIS2DE12

mariotesi edited a comment on issue #1775: hw/drivers/lis2de12: Added driver support to LIS2DE12
URL: https://github.com/apache/mynewt-core/pull/1775#issuecomment-487522464
 
 
   I tested the driver on sensor_test app running on STM32F4-Discovery board using the sensor
   console command
   
   As you can see the output of sensor command from console:
   
   # asking for sensor list
   057690 compat> sensor list
   061658 sensor dev = lis2de12_0, configured type = 0x1 
   
   
   # asking for sensor type
   062249 compat> sensor type lis2de12_0
   1426938 sensor dev = lis2de12_0, 
   type =
   1426940     accelerometer: 0x1
   
   
   # asking for sensor data with polling intervall 10 ms
   1498860 compat> sensor read lis2de12_0 0x01 -n 5 -i 10
   1514610 compat> ts: [ secs: 1425 usecs: 600494 cputime: 1425517126 ]
   1514616 x = -0.313812800 y = -0.156906400 z = 9.728197120
   1514633 ts: [ secs: 1425 usecs: 619614 cputime: 1425536246 ]
   1514637 x = -0.627625600 y = 0.156906400 z = 9.100571632
   1514655 ts: [ secs: 1425 usecs: 639614 cputime: 1425556246 ]
   1514659 x = -0.313812800 y = 0.000000000 z = 9.885103232
   1514676 ts: [ secs: 1425 usecs: 659614 cputime: 1425576246 ]
   1514680 x = -0.156906400 y = 0.000000000 z = 10.042009352
   1514697 ts: [ secs: 1425 usecs: 679614 cputime: 1425596246 ]
   1514701 x = -0.313812800 y = 0.000000000 z = 10.198916432
   
   # asking for sensor data with polling intervall 100 ms
   sensor read lis2de12_0 0x01 -n 5 -i 100
   135600 compat> ts: [ secs: 127 usecs: 807629 cputime: 127724248 ]
   135710 x = -0.156906400 y = -0.156906400 z = 10.042009352
   135825 ts: [ secs: 127 usecs: 917561 cputime: 127834180 ]
   135828 x = -0.313812800 y = 0.156906400 z = 9.728197120
   135942 ts: [ secs: 128 usecs: 27617 cputime: 127944236 ]
   135945 x = 0.000000000 y = 0.000000000 z = 9.257477760
   136059 ts: [ secs: 128 usecs: 137846 cputime: 128054465 ]
   136062 x = -0.313812800 y = 0.156906400 z = 9.414383904
   136176 ts: [ secs: 128 usecs: 247844 cputime: 128164463 ]
   136179 x = -0.470719232 y = 0.156906400 z = 9.728197120
   
   Basic features seems to works fine

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services