[riot-notifications] [RIOT-OS/RIOT] l3g4200d: Fixes conversion bug (#11152)

Torben Petersen notifications at github.com
Fri Mar 29 11:00:19 CET 2019


Here the console output on my Branch that includes my custom board and the commit of this PR:

> 2019-03-29 10:53:13,840 - INFO # main(): This is RIOT! (Version: 2019.01)
2019-03-29 10:53:13,856 - INFO # L3G4200 gyroscope driver test application
2019-03-29 10:53:13,856 - INFO # 
2019-03-29 10:53:13,872 - INFO # Initializing L3G4200 sensor
2019-03-29 10:53:13,872 - INFO # [OK]
2019-03-29 10:53:13,873 - INFO # 
2019-03-29 10:53:13,904 - INFO # Gyro data [dps] - X:     18   Y:      2   Z:     18
2019-03-29 10:53:13,968 - INFO # Gyro data [dps] - X:    -15   Y:      2   Z:      1
2019-03-29 10:53:14,031 - INFO # Gyro data [dps] - X:    -14   Y:      1   Z:      1
2019-03-29 10:53:14,080 - INFO # Gyro data [dps] - X:    -27   Y:      2   Z:      0
2019-03-29 10:53:14,144 - INFO # Gyro data [dps] - X:     21   Y:      3   Z:     -4
2019-03-29 10:53:14,207 - INFO # Gyro data [dps] - X:     18   Y:      0   Z:     -3
2019-03-29 10:53:14,271 - INFO # Gyro data [dps] - X:      6   Y:     -2   Z:     -5
2019-03-29 10:53:14,334 - INFO # Gyro data [dps] - X:      6   Y:     -2   Z:     -5
2019-03-29 10:53:14,398 - INFO # Gyro data [dps] - X:      4   Y:     -5   Z:     -6
2019-03-29 10:53:14,446 - INFO # Gyro data [dps] - X:      6   Y:     -7   Z:     -7
2019-03-29 10:53:14,510 - INFO # Gyro data [dps] - X:     12   Y:     -7   Z:     -7
2019-03-29 10:53:14,574 - INFO # Gyro data [dps] - X:      8   Y:    -11   Z:     -7
2019-03-29 10:53:14,638 - INFO # Gyro data [dps] - X:     11   Y:     -4   Z:     -1
2019-03-29 10:53:14,702 - INFO # Gyro data [dps] - X:     33   Y:     -1   Z:     -1
2019-03-29 10:53:14,750 - INFO # Gyro data [dps] - X:     57   Y:     11   Z:      1
2019-03-29 10:53:14,814 - INFO # Gyro data [dps] - X:     90   Y:     29   Z:     10
2019-03-29 10:53:14,878 - INFO # Gyro data [dps] - X:     48   Y:     11   Z:     13
2019-03-29 10:53:14,941 - INFO # Gyro data [dps] - X:     29   Y:      7   Z:      7
2019-03-29 10:53:15,005 - INFO # Gyro data [dps] - X:     30   Y:     13   Z:      7
2019-03-29 10:53:15,069 - INFO # Gyro data [dps] - X:     26   Y:     17   Z:      9
2019-03-29 10:53:15,132 - INFO # Gyro data [dps] - X:      8   Y:     24   Z:      9
2019-03-29 10:53:15,181 - INFO # Gyro data [dps] - X:     38   Y:     49   Z:     20
2019-03-29 10:53:15,245 - INFO # Gyro data [dps] - X:     41   Y:     53   Z:     15
2019-03-29 10:53:15,308 - INFO # Gyro data [dps] - X:     14   Y:     48   Z:      4
2019-03-29 10:53:15,372 - INFO # Gyro data [dps] - X:    -11   Y:     34   Z:     -1
2019-03-29 10:53:15,435 - INFO # Gyro data [dps] - X:    -50   Y:     17   Z:    -13
2019-03-29 10:53:15,484 - INFO # Gyro data [dps] - X:    -24   Y:      3   Z:    -23
2019-03-29 10:53:15,548 - INFO # Gyro data [dps] - X:    -20   Y:     -7   Z:    -20
2019-03-29 10:53:15,611 - INFO # Gyro data [dps] - X:     -9   Y:    -16   Z:    -22
2019-03-29 10:53:15,675 - INFO # Gyro data [dps] - X:     19   Y:    -21   Z:    -13
2019-03-29 10:53:15,739 - INFO # Gyro data [dps] - X:     19   Y:    -22   Z:     -8
2019-03-29 10:53:15,803 - INFO # Gyro data [dps] - X:     30   Y:    -36   Z:    -13
2019-03-29 10:53:15,851 - INFO # Gyro data [dps] - X:     23   Y:    -25   Z:     -5
2019-03-29 10:53:15,915 - INFO # Gyro data [dps] - X:     34   Y:    -35   Z:      0
2019-03-29 10:53:15,979 - INFO # Gyro data [dps] - X:     53   Y:     -7   Z:      8
2019-03-29 10:53:16,042 - INFO # Gyro data [dps] - X:     57   Y:      6   Z:     10
2019-03-29 10:53:16,106 - INFO # Gyro data [dps] - X:     44   Y:     15   Z:     11
2019-03-29 10:53:16,170 - INFO # Gyro data [dps] - X:     20   Y:     20   Z:      2
2019-03-29 10:53:16,218 - INFO # Gyro data [dps] - X:     -8   Y:     26   Z:      0
2019-03-29 10:53:16,282 - INFO # Gyro data [dps] - X:      7   Y:     23   Z:      0
2019-03-29 10:53:16,345 - INFO # Gyro data [dps] - X:      9   Y:     21   Z:      1
2019-03-29 10:53:16,409 - INFO # Gyro data [dps] - X:     16   Y:     16   Z:      1
2019-03-29 10:53:16,473 - INFO # Gyro data [dps] - X:     33   Y:     22   Z:      8
2019-03-29 10:53:16,536 - INFO # Gyro data [dps] - X:     33   Y:     18   Z:      6
2019-03-29 10:53:16,585 - INFO # Gyro data [dps] - X:     28   Y:     14   Z:      2
2019-03-29 10:53:16,649 - INFO # Gyro data [dps] - X:     23   Y:      5   Z:     -2
2019-03-29 10:53:16,713 - INFO # Gyro data [dps] - X:     21   Y:      1   Z:     -4
2019-03-29 10:53:16,776 - INFO # Gyro data [dps] - X:     26   Y:     -2   Z:     -5
2019-03-29 10:53:16,840 - INFO # Gyro data [dps] - X:     24   Y:     -1   Z:     -4
2019-03-29 10:53:16,904 - INFO # Gyro data [dps] - X:     23   Y:     -2   Z:     -6
2019-03-29 10:53:16,952 - INFO # Gyro data [dps] - X:     23   Y:     -2   Z:     -5
2019-03-29 10:53:17,016 - INFO # Gyro data [dps] - X:     22   Y:     -2   Z:     -6 <

And now the output, when i change the datatype back to int (same branch):
>2019-03-29 10:59:30,399 - INFO # main(): This is RIOT! (Version: 2019.01)
2019-03-29 10:59:30,430 - INFO # L3G4200 gyroscope driver test application
2019-03-29 10:59:30,430 - INFO # 
2019-03-29 10:59:30,446 - INFO # Initializing L3G4200 sensor
2019-03-29 10:59:30,446 - INFO # [OK]
2019-03-29 10:59:30,446 - INFO # 
2019-03-29 10:59:30,477 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:30,525 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:30,589 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:30,653 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:30,717 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:30,781 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:30,829 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:30,893 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:30,957 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:31,021 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:31,084 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:31,148 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:31,196 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:31,260 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:31,324 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:31,387 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:31,451 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:31,499 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:31,563 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:31,627 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:31,691 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:31,754 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:31,818 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:31,866 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:31,930 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:31,994 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:32,058 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:32,121 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:32,169 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:32,233 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:32,297 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:32,361 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:32,425 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:32,488 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:32,537 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:32,601 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:32,664 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:32,728 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:32,791 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:32,840 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:32,904 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:32,968 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:33,031 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:33,095 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:33,159 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:33,207 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:33,271 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:33,335 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:33,398 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:33,462 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:33,526 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:33,574 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:33,638 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:33,701 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:33,765 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:33,829 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0
2019-03-29 10:59:33,877 - INFO # Gyro data [dps] - X:      0   Y:      0   Z:      0 <

FYI: I was tilting the sensor while running the test



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11152#issuecomment-477939639
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190329/65aa0d4a/attachment-0001.html>


More information about the notifications mailing list