mirror of
https://github.com/eclipse/upm.git
synced 2025-07-02 01:41:12 +03:00
bmp180/bmpx0x: Remove old bmp180 driver
This commit removes the old bmp180 driver that was erroneously re-added when the interface examples and headers were introduced. It then switches the users of bmp180 to the existing bmpx8x driver, which already supports the bmp180. Signed-off-by: Jon Trulson <jtrulson@ics.com> Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
@ -30,6 +30,7 @@
|
||||
#include <string>
|
||||
#include <mraa/i2c.hpp>
|
||||
#include <math.h>
|
||||
#include "upm/iPressureSensor.hpp"
|
||||
#include "upm/iTemperatureSensor.hpp"
|
||||
|
||||
#define ADDR 0x77 // device address
|
||||
@ -89,7 +90,7 @@ namespace upm {
|
||||
* @snippet bmpx8x.cxx Interesting
|
||||
*/
|
||||
|
||||
class BMPX8X : public ITemperatureSensor {
|
||||
class BMPX8X : public IPressureSensor, public ITemperatureSensor {
|
||||
public:
|
||||
/**
|
||||
* Instantiates a BMPX8X object
|
||||
@ -149,7 +150,14 @@ class BMPX8X : public ITemperatureSensor {
|
||||
int getTemperatureCelcius();
|
||||
|
||||
/**
|
||||
* Returns name of module. This is the string in library name after libupm_
|
||||
* Return latest calculated pressure value in Pascals
|
||||
* See IPressureSensor
|
||||
*/
|
||||
int getPressurePa() { return getPressure(); };
|
||||
|
||||
/**
|
||||
* Returns name of module. This is the string in library name
|
||||
* after libupm_
|
||||
|
||||
* @return name of module
|
||||
*/
|
||||
|
Reference in New Issue
Block a user