Compass: remove accumulate

this method is a noop on all backends
This commit is contained in:
Randy Mackay 2018-08-02 12:20:41 +09:00 committed by Andrew Tridgell
parent 54df7ad88d
commit 99b54935db
4 changed files with 0 additions and 19 deletions

View File

@ -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)
{

View File

@ -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

View File

@ -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) {};

View File

@ -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;