/**************************************************************************/ /*! * @brief Gets the sensor_t data */ /**************************************************************************/ public void getSensor(ref sensor_t sensor) { sensor.name = "L3GD20"; sensor.version = 1; sensor.sensor_id = _sensorID; sensor.type = 4; // SENSOR_TYPE_GYROSCOPE; sensor.min_delay = 0; sensor.max_value = (float)this._range * SENSORS_DPS_TO_RADS; sensor.min_value = ((float)this._range * -1.0f) * SENSORS_DPS_TO_RADS; sensor.resolution = 0.0F; // TBD }
/**************************************************************************/ /*! * @brief Gets the sensor_t data */ /**************************************************************************/ public void getSensor(ref sensor_t sensor) { /* Insert the sensor name in the fixed length char array */ sensor.name = "LSM303"; sensor.version = 1; sensor.sensor_id = _sensorID; sensor.type = 2; //SENSOR_TYPE_MAGNETIC_FIELD; sensor.min_delay = 0; sensor.max_value = 0.0F; // TBD sensor.min_value = 0.0F; // TBD sensor.resolution = 0.0F; // TBD }
/**************************************************************************/ /*! * @brief Provides the sensor_t data for this sensor */ /**************************************************************************/ public void getSensor(ref sensor_t sensor) { /* Insert the sensor name in the fixed length char array */ sensor.name = "BMP085"; sensor.version = 1; sensor.sensor_id = _sensorID; sensor.type = 6; // SENSOR_TYPE_PRESSURE; sensor.min_delay = 0; sensor.max_value = 300.0F; // 300..1100 hPa sensor.min_value = 1100.0F; sensor.resolution = 0.01F; // Datasheet states 0.01 hPa resolution }