Remove usage of waitForUpdate/updateNotify, there are no users of this feature.

Signed-off-by: Nicolae Rosia <nicolae.rosia@gmail.com>
This commit is contained in:
Nicolae Rosia
2017-07-11 12:14:52 +03:00
committed by Julian Oes
parent 67987d27d8
commit 5618f34f3b
13 changed files with 0 additions and 54 deletions
@@ -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);
@@ -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;
};
@@ -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;
};
@@ -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;
@@ -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;
};
@@ -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;
};
@@ -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);
@@ -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);
@@ -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);
@@ -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;
@@ -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;
@@ -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;
};
@@ -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)
{