Skip to content
oskara edited this page Aug 13, 2012 · 6 revisions

Configuring the DASH

This chapter explains the different configuration options of DASH.

sensors.mk

Here is the list of compile-time options. These should be set through the build system. For instance, by including them in to your BoardConfig.mk.

SOMC_CFG_SENSORS_ACCEL_BMA150_INPUT   - Enable BMA150 accelerometer support   (Value: yes/no)
SOMC_CFG_SENSORS_ACCEL_BMA250_INPUT   - Enable BMA250 accelerometer support   (Value: yes/no)
SOMC_CFG_SENSORS_ACCEL_BMA250NA_INPUT - Enable BMA250NA accelerometer support (Value: yes/no)
SOMC_CFG_SENSORS_COMPASS_AK8973       - Enable AKM8973 compass support        (Value: yes/no)
SOMC_CFG_SENSORS_COMPASS_AK8975       - Enable AKM8975 compass support        (Value: yes/no)
SOMC_CFG_SENSORS_COMPASS_LSM303DLH    - Enable LSM303DLH compass support      (Value: yes/no)
SOMC_CFG_SENSORS_COMPASS_LSM303DLHC   - Enable LSM303DLHC compass support     (Value: yes/no)
SOMC_CFG_SENSORS_PROXIMITY_APDS9700   - Enable APDS9700 proximity support     (Value: yes/no)
SOMC_CFG_SENSORS_PROXIMITY_APDS9702   - Enable APDS9702 proximity support     (Value: yes/no)
SOMC_CFG_SENSORS_PROXIMITY_SHARP_GP2  - Enable Sharp GP2 proximity support    (Value: yes/no)
SOMC_CFG_SENSORS_PROXIMITY_NOA3402    - Enable NOA 3402 proximity support     (Value: yes/no)
SOMC_CFG_SENSORS_PROXIMITY_TLS2772    - Enable TLS2772 proximity support      (Value: yes/no)
SOMC_CFG_SENSORS_PRESSURE_BMP180      - Enable BMP180 pressure support        (Value: yes/no)
SOMC_CFG_SENSORS_PRESSURE_LPS331AP    - Enable LPS311AP pressure support      (Value: yes/no)
SOMC_CFG_SENSORS_GYRO_L3G4200D        - Enable L3G4200D gyroscope support     (Value: yes/no)

sensors.conf

These are the possible options that can be set at run-time. They are parsed when dloading the DASH library. The file should be located at /etc/sensors.mk or /etc/dash.conf

BMA150

 BMA150:
   bma150_axis_x - X-axis transformation. Used to remap X-axis.
                   Values:  0 = x, 1 = y, 2 = z.
                   Example: bma150_axis_x = 1
   bma150_axis_y - Y-axis transformation. Used to remap Y-axis.
                   Values:  0 = x, 1 = y, 2 = z.
                   Example: bma150_axis_y = 2
   bma150_axis_z - Z-axis transformation. Used to remap Z-axis.
                   Values:  0 = x, 1 = y, 2 = z.
                   Example: bma150_axis_z = 0
   bma150_neg_x  - X-axis negation.
                   Values:  1, -1
                   Example: bma150_neg_x = -1
   bma150_neg_y  - Y-axis negation.
                   Values:  1, -1
                   Example: bma150_neg_y = 1
   bma150_neg_z  - Z-axis negation.
                   Values:  1, -1
                   Example: bma150_neg_z = -1

BMA250 and BMA250NA

 BMA250:
 BMA250NA:
   Same as BMA150 except for prefix. E.g. bma250_axis_x and bma250na_axis_x.

LSM303DLH

 LSM303DLH:
   lsm303dlh-magnetic_axis_map  - Axis transformation. Used to remap the axis.
                                  Values:  0 = x, 1 = y, 2 = z.
                                  Example: lsm303dlh-magnetic_axis_map = 1,0,2
   lsm303dlh-magnetic_axis_sign - Axis transformation. Axis negation.
                                  Values:  1, -1
                                  Example: lsm303dlh-magnetic_axis_sign = -1,1,-1

AKM8973 and AKM8975

 AK897x:
   ak897xorientation_axis_map   - Axis transformation. Used to remap the axis.
                                  Values:  0 = x, 1 = y, 2 = z.
                                  Example: ak897xorientation_axis_map = 1,0,2
   ak897xorientation_axis_sign  - Axis transformation. Axis negation.
                                  Values:  1, -1
                                  Example: lsm303dlh-magnetic_axis_sign = -1,1,-1
   ak897xmagnetic_axis_map      - Axis transformation. Used to remap the axis.
                                  Values:  0 = x, 1 = y, 2 = z.
                                  Example: ak897xorientation_axis_map = 1,0,2
   ak897xmagnetic_axis_sign     - Axis transformation. Axis negation.
                                  Values:  1, -1
                                  Example: lsm303dlh-magnetic_axis_sign = -1,1,-1

Example configs

Configuration examples can be found in the git under the [docs/-directory] (https://github.com/sonyericssondev/DASH/tree/master/docs).