forked from Archive/PX4-Autopilot
drivers/barometer/invensense: fix icp10111 and icp10100
* fix icp so it compiles * add icp10111 and icp10100 DEVTPYE
This commit is contained in:
parent
3c10e34a49
commit
7a6cfce0ca
|
@ -0,0 +1,3 @@
|
|||
menu "Invensense"
|
||||
rsource "*/Kconfig"
|
||||
endmenu #Invensense
|
|
@ -32,7 +32,7 @@
|
|||
############################################################################
|
||||
|
||||
px4_add_module(
|
||||
MODULE drivers__invensense__icp10100
|
||||
MODULE drivers__barometer__invensense__icp10100
|
||||
MAIN icp10100
|
||||
COMPILE_FLAGS
|
||||
SRCS
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
menuconfig DRIVERS_BAROMETER_INVENSENSE_ICP10100
|
||||
bool "icp10100"
|
||||
default n
|
||||
---help---
|
||||
Enable support for icp10100
|
||||
|
||||
|
|
@ -32,7 +32,7 @@
|
|||
############################################################################
|
||||
|
||||
px4_add_module(
|
||||
MODULE drivers__invensense__icp10111
|
||||
MODULE drivers__barometer__invensense__icp10111
|
||||
MAIN icp10111
|
||||
COMPILE_FLAGS
|
||||
SRCS
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
menuconfig DRIVERS_BAROMETER_INVENSENSE_ICP10111
|
||||
bool "icp10100"
|
||||
default n
|
||||
---help---
|
||||
Enable support for icp10111
|
||||
|
Loading…
Reference in New Issue