Changeset 3423


Ignore:
Timestamp:
Nov 14, 2012, 8:11:21 AM (18 months ago)
Author:
wmb
Message:

OLPC ARM - accelerometer selftest
a) reduced the min-y value to prevent test fallout
b) Eliminated the not1g? test because it was failing sometimes.
The selftest is now almost worthless because the vendor-recommended
acceptance range encompasses pretty much the entire number range.
I guess what is being tested is whether the value changes at all
(in the right direction) when you invoke the built-in-test feature.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpu/arm/olpc/accelerometer.fth

    r3421 r3423  
    7777 
    7878d#   80 value min-x 
    79 d#   80 value min-y 
     79d#   20 value min-y 
    8080d#   80 value min-z 
    8181d# 1700 value max-x 
     
    133133   average-acceleration@     ( x y z ) 
    134134 
     135[ifdef] notyet 
    135136   \ Check that the magnitude of the acceleration vector is about 1 G 
    136137   3dup not1g?  if           ( x y z ) 
     
    139140      true exit              ( -- error? ) 
    140141   then                      ( x y z ) 
     142[then] 
    141143 
    142144   \ Use the device's selftest function to force a change in one direction 
     
    178180      \ Support for new LIS3DHTR chip 
    179181      d# 400,000 to bus-speed 
    180       d#   80 to min-x  d#   80 to min-y  d#   80 to min-z 
     182      d#   80 to min-x  d#   20 to min-y  d#   80 to min-z 
    181183      d# 1700 to max-x  d# 1700 to max-y  d# 1400 to max-z 
    182184      h# 19 1 reg 
Note: See TracChangeset for help on using the changeset viewer.