diff --git a/src/platforms/posix/drivers/accelsim/accelsim.cpp b/src/platforms/posix/drivers/accelsim/accelsim.cpp index a16531efe7..061715984b 100644 --- a/src/platforms/posix/drivers/accelsim/accelsim.cpp +++ b/src/platforms/posix/drivers/accelsim/accelsim.cpp @@ -881,9 +881,6 @@ ACCELSIM::_measure() _accel_reports->force(&accel_report); - /* notify anyone waiting for data */ - DevMgr::updateNotify(*this); - if (!(m_pub_blocked)) { /* publish it */ @@ -970,9 +967,6 @@ ACCELSIM::mag_measure() _mag_reports->force(&mag_report); - /* notify anyone waiting for data */ - DevMgr::updateNotify(*this); - if (!(m_pub_blocked)) { /* publish it */ orb_publish(ORB_ID(sensor_mag), _mag->_mag_topic, &mag_report); diff --git a/src/platforms/posix/drivers/df_ak8963_wrapper/df_ak8963_wrapper.cpp b/src/platforms/posix/drivers/df_ak8963_wrapper/df_ak8963_wrapper.cpp index 475c502f60..5256ea901c 100644 --- a/src/platforms/posix/drivers/df_ak8963_wrapper/df_ak8963_wrapper.cpp +++ b/src/platforms/posix/drivers/df_ak8963_wrapper/df_ak8963_wrapper.cpp @@ -316,9 +316,6 @@ int DfAK8963Wrapper::_publish(struct mag_sensor_data &data) perf_end(_mag_sample_perf); - /* Notify anyone waiting for data. */ - DevMgr::updateNotify(*this); - return 0; }; diff --git a/src/platforms/posix/drivers/df_bebop_rangefinder_wrapper/df_bebop_rangefinder_wrapper.cpp b/src/platforms/posix/drivers/df_bebop_rangefinder_wrapper/df_bebop_rangefinder_wrapper.cpp index 022fb4d6a0..5aac994242 100644 --- a/src/platforms/posix/drivers/df_bebop_rangefinder_wrapper/df_bebop_rangefinder_wrapper.cpp +++ b/src/platforms/posix/drivers/df_bebop_rangefinder_wrapper/df_bebop_rangefinder_wrapper.cpp @@ -171,9 +171,6 @@ int DfBebopRangeFinderWrapper::_publish(struct bebop_range &data) orb_publish(ORB_ID(distance_sensor), _range_topic, &distance_data); } - /* Notify anyone waiting for data. */ - DevMgr::updateNotify(*this); - return 0; }; diff --git a/src/platforms/posix/drivers/df_bmp280_wrapper/df_bmp280_wrapper.cpp b/src/platforms/posix/drivers/df_bmp280_wrapper/df_bmp280_wrapper.cpp index 12956e7748..4682b63167 100644 --- a/src/platforms/posix/drivers/df_bmp280_wrapper/df_bmp280_wrapper.cpp +++ b/src/platforms/posix/drivers/df_bmp280_wrapper/df_bmp280_wrapper.cpp @@ -196,9 +196,6 @@ int DfBmp280Wrapper::_publish(struct baro_sensor_data &data) } } - /* Notify anyone waiting for data. */ - DevMgr::updateNotify(*this); - perf_end(_baro_sample_perf); return 0; diff --git a/src/platforms/posix/drivers/df_hmc5883_wrapper/df_hmc5883_wrapper.cpp b/src/platforms/posix/drivers/df_hmc5883_wrapper/df_hmc5883_wrapper.cpp index 461238a69f..4784ab628b 100644 --- a/src/platforms/posix/drivers/df_hmc5883_wrapper/df_hmc5883_wrapper.cpp +++ b/src/platforms/posix/drivers/df_hmc5883_wrapper/df_hmc5883_wrapper.cpp @@ -316,9 +316,6 @@ int DfHmc9250Wrapper::_publish(struct mag_sensor_data &data) perf_end(_mag_sample_perf); - /* Notify anyone waiting for data. */ - DevMgr::updateNotify(*this); - return 0; }; diff --git a/src/platforms/posix/drivers/df_isl29501_wrapper/df_isl29501_wrapper.cpp b/src/platforms/posix/drivers/df_isl29501_wrapper/df_isl29501_wrapper.cpp index bc508c20c4..1cba72b106 100644 --- a/src/platforms/posix/drivers/df_isl29501_wrapper/df_isl29501_wrapper.cpp +++ b/src/platforms/posix/drivers/df_isl29501_wrapper/df_isl29501_wrapper.cpp @@ -178,9 +178,6 @@ int DfISL29501Wrapper::_publish(struct range_sensor_data &data) orb_publish(ORB_ID(distance_sensor), _range_topic, &d); } - /* Notify anyone waiting for data. */ - DevMgr::updateNotify(*this); - return 0; }; diff --git a/src/platforms/posix/drivers/df_lsm9ds1_wrapper/df_lsm9ds1_wrapper.cpp b/src/platforms/posix/drivers/df_lsm9ds1_wrapper/df_lsm9ds1_wrapper.cpp index 86c1a6581a..d8f75e5b5d 100644 --- a/src/platforms/posix/drivers/df_lsm9ds1_wrapper/df_lsm9ds1_wrapper.cpp +++ b/src/platforms/posix/drivers/df_lsm9ds1_wrapper/df_lsm9ds1_wrapper.cpp @@ -710,9 +710,6 @@ int DfLsm9ds1Wrapper::_publish(struct imu_sensor_data &data) orb_publish(ORB_ID(sensor_mag), _mag_topic, &mag_report); } - /* Notify anyone waiting for data. */ - DevMgr::updateNotify(*this); - // Report if there are high vibrations, every 10 times it happens. const bool threshold_reached = (data.accel_range_hit_counter - _last_accel_range_hit_count > 10); diff --git a/src/platforms/posix/drivers/df_mpu6050_wrapper/df_mpu6050_wrapper.cpp b/src/platforms/posix/drivers/df_mpu6050_wrapper/df_mpu6050_wrapper.cpp index b9ad2c5d1e..7b64490147 100644 --- a/src/platforms/posix/drivers/df_mpu6050_wrapper/df_mpu6050_wrapper.cpp +++ b/src/platforms/posix/drivers/df_mpu6050_wrapper/df_mpu6050_wrapper.cpp @@ -554,9 +554,6 @@ int DfMPU6050Wrapper::_publish(struct imu_sensor_data &data) orb_publish(ORB_ID(sensor_accel), _accel_topic, &accel_report); } - /* Notify anyone waiting for data. */ - DevMgr::updateNotify(*this); - // Report if there are high vibrations, every 10 times it happens. const bool threshold_reached = (data.accel_range_hit_counter - _last_accel_range_hit_count > 10); diff --git a/src/platforms/posix/drivers/df_mpu9250_wrapper/df_mpu9250_wrapper.cpp b/src/platforms/posix/drivers/df_mpu9250_wrapper/df_mpu9250_wrapper.cpp index 660e9604bd..2c4d371081 100644 --- a/src/platforms/posix/drivers/df_mpu9250_wrapper/df_mpu9250_wrapper.cpp +++ b/src/platforms/posix/drivers/df_mpu9250_wrapper/df_mpu9250_wrapper.cpp @@ -743,9 +743,6 @@ int DfMpu9250Wrapper::_publish(struct imu_sensor_data &data) } } - /* Notify anyone waiting for data. */ - DevMgr::updateNotify(*this); - // Report if there are high vibrations, every 10 times it happens. const bool threshold_reached = (data.accel_range_hit_counter - _last_accel_range_hit_count > 10); diff --git a/src/platforms/posix/drivers/df_ms5607_wrapper/df_ms5607_wrapper.cpp b/src/platforms/posix/drivers/df_ms5607_wrapper/df_ms5607_wrapper.cpp index ec59f23a3d..1e65921145 100644 --- a/src/platforms/posix/drivers/df_ms5607_wrapper/df_ms5607_wrapper.cpp +++ b/src/platforms/posix/drivers/df_ms5607_wrapper/df_ms5607_wrapper.cpp @@ -194,9 +194,6 @@ int DfMS5607Wrapper::_publish(struct baro_sensor_data &data) } } - /* Notify anyone waiting for data. */ - DevMgr::updateNotify(*this); - perf_end(_baro_sample_perf); return 0; diff --git a/src/platforms/posix/drivers/df_ms5611_wrapper/df_ms5611_wrapper.cpp b/src/platforms/posix/drivers/df_ms5611_wrapper/df_ms5611_wrapper.cpp index de67c642b1..1f0a592e2b 100644 --- a/src/platforms/posix/drivers/df_ms5611_wrapper/df_ms5611_wrapper.cpp +++ b/src/platforms/posix/drivers/df_ms5611_wrapper/df_ms5611_wrapper.cpp @@ -194,9 +194,6 @@ int DfMS5611Wrapper::_publish(struct baro_sensor_data &data) } } - /* Notify anyone waiting for data. */ - DevMgr::updateNotify(*this); - perf_end(_baro_sample_perf); return 0; diff --git a/src/platforms/posix/drivers/df_trone_wrapper/df_trone_wrapper.cpp b/src/platforms/posix/drivers/df_trone_wrapper/df_trone_wrapper.cpp index 501b59af71..18e6fb95d9 100644 --- a/src/platforms/posix/drivers/df_trone_wrapper/df_trone_wrapper.cpp +++ b/src/platforms/posix/drivers/df_trone_wrapper/df_trone_wrapper.cpp @@ -181,9 +181,6 @@ int DfTROneWrapper::_publish(struct range_sensor_data &data) orb_publish(ORB_ID(distance_sensor), _range_topic, &d); } - /* Notify anyone waiting for data. */ - DevMgr::updateNotify(*this); - return 0; }; diff --git a/src/platforms/posix/drivers/gyrosim/gyrosim.cpp b/src/platforms/posix/drivers/gyrosim/gyrosim.cpp index 225ebb1be3..eda0540cc5 100644 --- a/src/platforms/posix/drivers/gyrosim/gyrosim.cpp +++ b/src/platforms/posix/drivers/gyrosim/gyrosim.cpp @@ -291,8 +291,6 @@ public: protected: friend class GYROSIM; - void parent_poll_notify(); - virtual void _measure() {}; private: GYROSIM *_parent; @@ -1105,10 +1103,6 @@ GYROSIM::_measure() if (accel_notify) { - /* notify anyone waiting for data */ - updateNotify(); - _gyro->parent_poll_notify(); - if (!(_pub_blocked)) { /* log the time of this report */ perf_begin(_controller_latency_perf); @@ -1118,9 +1112,6 @@ GYROSIM::_measure() } if (gyro_notify) { - updateNotify(); - _gyro->parent_poll_notify(); - if (!(_pub_blocked)) { /* publish it */ orb_publish(ORB_ID(sensor_gyro), _gyro->_gyro_topic, &grb); @@ -1187,12 +1178,6 @@ GYROSIM_gyro::init() return ret; } -void -GYROSIM_gyro::parent_poll_notify() -{ - updateNotify(); -} - ssize_t GYROSIM_gyro::devRead(void *buffer, size_t buflen) {