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 Daniel Agar
parent 3c10e34a49
commit 7a6cfce0ca
No known key found for this signature in database
GPG Key ID: FD3CBA98017A69DE
6 changed files with 18 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