[openfirmware] [commit] r2272 - cpu/arm/olpc/1.75

repository service svn at openfirmware.info
Tue Jun 14 04:20:58 CEST 2011


Author: quozl
Date: Tue Jun 14 04:20:57 2011
New Revision: 2272
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2272

Log:
OLPC XO-1.75 trac #10919 - tune accelerometer selftest based on two more laptop samples.

Modified:
   cpu/arm/olpc/1.75/accelerometer.fth

Modified: cpu/arm/olpc/1.75/accelerometer.fth
==============================================================================
--- cpu/arm/olpc/1.75/accelerometer.fth	Tue Jun 14 04:17:05 2011	(r2271)
+++ cpu/arm/olpc/1.75/accelerometer.fth	Tue Jun 14 04:20:57 2011	(r2272)
@@ -55,9 +55,12 @@
 
 \ The datasheet says the selftest change range is 3 to 32, but we
 \ give a little headroom on the high end to allow for external
-\ vibration.  Empirically, on the unit I tested, the measurement
-\ was maxed out at 32.  Typical is supposed to be 19.
-: out-of-range?  ( delta -- error? )  3  d# 40 between 0=  ;
+\ vibration.  Typical is supposed to be 19.
+\ Empirically, measured maximums were:
+\ - Mitch's unit, 32
+\ - James' A3, 41 (on rubber mat on bare ground)
+\ - James' A2, 39
+: out-of-range?  ( delta -- error? )  3  d# 50 between 0=  ;
 
 : error?  ( dx dy dz -- error? )
    out-of-range?  if  ." X axis error" cr  2drop true exit  then   ( dx dy )



More information about the openfirmware mailing list