MS5525 differential pressure driver

This commit is contained in:
Daniel Agar
2017-07-06 10:05:07 -04:00
parent 66a890d428
commit 7029be87c0
23 changed files with 852 additions and 62 deletions
+2 -2
View File
@@ -151,7 +151,7 @@ Airspeed::init()
_airspeed_pub = orb_advertise(ORB_ID(differential_pressure), &arp);
if (_airspeed_pub == nullptr) {
warnx("uORB started?");
PX4_WARN("uORB started?");
}
}
@@ -190,7 +190,7 @@ Airspeed::ioctl(struct file *filp, int cmd, unsigned long arg)
_measure_ticks = 0;
return OK;
/* external signalling (DRDY) not supported */
/* external signaling (DRDY) not supported */
case SENSOR_POLLRATE_EXTERNAL:
/* zero would be bad */
+2 -2
View File
@@ -81,7 +81,7 @@
#include <uORB/topics/subsystem_info.h>
/* Default I2C bus */
#define PX4_I2C_BUS_DEFAULT PX4_I2C_BUS_EXPANSION
static constexpr uint8_t PX4_I2C_BUS_DEFAULT = PX4_I2C_BUS_EXPANSION;
#ifndef CONFIG_SCHED_WORKQUEUE
# error This requires CONFIG_SCHED_WORKQUEUE.
@@ -130,7 +130,7 @@ protected:
float _max_differential_pressure_pa;
bool _sensor_ok;
bool _last_published_sensor_ok;
int _measure_ticks;
uint32_t _measure_ticks;
bool _collect_phase;
float _diff_pres_offset;