AP_InertialSensor: added set_default_filter() method

This commit is contained in:
Andrew Tridgell 2013-09-09 19:18:52 +10:00
parent ad9a605603
commit 7b3a674d66

View File

@ -131,6 +131,13 @@ public:
_board_orientation = orientation;
}
// override default filter frequency
void set_default_filter(float filter_hz) {
if (!_mpu6000_filter.load()) {
_mpu6000_filter.set(filter_hz);
}
}
protected:
// sensor specific init to be overwritten by descendant classes