<!DOCTYPE module SYSTEM "module.dtd">

<module name="baro_ets" dir="sensors">
  <doc>
    <description>
      Baro ETS (I2C).
      Driver for the EagleTree Systems Baro Sensor.
      Has only been tested with V3 of the sensor hardware.

      Notes:
      Connect directly to TWOG/Tiny I2C port. Multiple sensors can be chained together.
      Sensor should be in the proprietary mode (default) and not in 3rd party mode.

      Sensor module wire assignments:
      - Red wire: 5V
      - White wire: Ground
      - Yellow wire: SDA
      - Brown wire: SCL

    </description>
    <define name="BARO_ETS_I2C_DEV" value="i2cX" description="set i2c peripheral (default: i2c0)"/>
    <define name="BARO_ETS_SCALE" value="scale" description="scale factor to convert raw ADC measurement to pressure in Pascal (default: 37.5)"/>
    <define name="BARO_ETS_ALT_SCALE" value="scale" description="scale factor to convert raw ADC measurement to altitude change in meters (default: 0.32)"/>
    <define name="BARO_ETS_ALT_SCALE" value="scale" description="pressure offset in Pascal when converting raw adc to real pressure (default: 101325.0="/>
    <define name="BARO_ETS_START_DELAY" value="delay" description="set initial start delay in seconds"/>
    <define name="BARO_ETS_SYNC_SEND" description="flag to transmit the data as it is acquired"/>
  </doc>

  <header>
    <file name="baro_ets.h"/>
  </header>
  <init fun="baro_ets_init()"/>
  <periodic fun="baro_ets_read_periodic()" freq="10."/>
  <event fun="BaroEtsEvent()"/>

  <makefile target="ap">
    <file name="baro_ets.c"/>
  </makefile>

</module>
