drivers/barometer/invensense: fix icp10111 and icp10100

* fix icp so it compiles
* add icp10111 and icp10100 DEVTPYE
This commit is contained in:
Ryan Meagher 2022-06-29 18:22:10 -07:00 committed by GitHub
parent 55563eba49
commit f16ea921c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 21 additions and 3 deletions

View File

@ -0,0 +1,3 @@
menu "Invensense"
rsource "*/Kconfig"
endmenu #Invensense

View File

@ -32,7 +32,7 @@
############################################################################
px4_add_module(
MODULE drivers__invensense__icp10100
MODULE drivers__barometer__invensense__icp10100
MAIN icp10100
COMPILE_FLAGS
SRCS

View File

@ -233,7 +233,6 @@ ICP10100::RunImpl()
float b = (_pcal[0] - a) * (s1 + c);
float _pressure_Pa = a + b / (c + _raw_p);
const hrt_abstime nowx = hrt_absolute_time();
float temperature = _temperature_C;
float pressure = _pressure_Pa;

View File

@ -0,0 +1,7 @@
menuconfig DRIVERS_BAROMETER_INVENSENSE_ICP10100
bool "icp10100"
default n
---help---
Enable support for icp10100

View File

@ -32,7 +32,7 @@
############################################################################
px4_add_module(
MODULE drivers__invensense__icp10111
MODULE drivers__barometer__invensense__icp10111
MAIN icp10111
COMPILE_FLAGS
SRCS

View File

@ -0,0 +1,6 @@
menuconfig DRIVERS_BAROMETER_INVENSENSE_ICP10111
bool "icp10100"
default n
---help---
Enable support for icp10111

View File

@ -213,6 +213,9 @@
#define DRV_FLOW_DEVTYPE_PX4FLOW 0xB5
#define DRV_FLOW_DEVTYPE_PAA3905 0xB6
#define DRV_BARO_DEVTYPE_ICP10100 0xC0
#define DRV_BARO_DEVTYPE_ICP10111 0xC1
#define DRV_DEVTYPE_UNUSED 0xff
#endif /* _DRV_SENSOR_H */