ソースを参照

gy65: add more doc and default constructor settings

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll 10 年 前
コミット
93a8603686
共有2 個のファイルを変更した7 個の追加3 個の削除を含む
  1. バイナリ
      docs/images/bmp085.jpeg
  2. 7
    3
      src/gy65/gy65.h

バイナリ
docs/images/bmp085.jpeg ファイルの表示


+ 7
- 3
src/gy65/gy65.h ファイルの表示

@@ -61,11 +61,15 @@
61 61
 namespace upm {
62 62
 
63 63
 /**
64
- * @brief C++ API for GY65 chip (Atmospheric Pressure Sensor)
64
+ * @brief C++ API for GY65/BMP085 chip (Atmospheric Pressure Sensor)
65 65
  *
66
- * This file defines the gy65 C++ interface for libgy65
66
+ * The Bosch [BMP085]
67
+ * (https://www.sparkfun.com/datasheets/Components/General/BST-BMP085-DS000-05.pdf)
68
+ * is a high precision, ultra-low power consumption pressure sensor. It has a
69
+ * range of between 30,000 and 110,000 Pa.
67 70
  *
68 71
  * @snippet gy65.cxx Interesting
72
+ * @image html bmp085.jpeg
69 73
  */
70 74
 class GY65 {
71 75
     public:
@@ -76,7 +80,7 @@ class GY65 {
76 80
          * @param devAddr address of used i2c device
77 81
          * @param mode BMP085 mode
78 82
          */
79
-        GY65 (int bus, int devAddr, uint8_t mode = BMP085_ULTRAHIGHRES);
83
+        GY65 (int bus, int devAddr=0x77, uint8_t mode=BMP085_ULTRAHIGHRES);
80 84
 
81 85
         /**
82 86
          * GY65 object destructor, basicaly it close i2c connection.