this method is a noop on all backends
@ -1017,15 +1017,6 @@ void Compass::_detect_backends(void)
}
void
Compass::accumulate(void)
{
for (uint8_t i=0; i< _backend_count; i++) {
// call accumulate on each of the backend
_backends[i]->accumulate();
bool
Compass::read(void)
@ -74,10 +74,6 @@ public:
///
bool read();
/// use spare CPU cycles to accumulate values from the compass if
/// possible (this method should also be implemented in the backends)
void accumulate();
/// Calculate the tilt-compensated heading_ variables.
/// @param dcm_matrix The current orientation rotation matrix
@ -34,10 +34,6 @@ public:
// read sensor data
virtual void read(void) = 0;
// accumulate a reading from the magnetometer. Optional in
// backends
virtual void accumulate(void) {};
// callback for UAVCAN messages
virtual void handle_mag_msg(Vector3f &mag) {};
@ -123,8 +123,6 @@ bool AP_Compass_UAVCAN::register_uavcan_compass(uint8_t mgr, uint8_t node)
_sum.zero();
_count = 0;
accumulate();
debug_mag_uavcan(2, "AP_Compass_UAVCAN loaded\n\r");
return true;