Filter: optimize hot parts of notch filter updates
This commit is contained in:
parent
6e3b502110
commit
fbdeea2d03
@ -13,6 +13,11 @@
|
|||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef HAL_DEBUG_BUILD
|
||||||
|
#define AP_INLINE_VECTOR_OPS
|
||||||
|
#pragma GCC optimize("O2")
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "HarmonicNotchFilter.h"
|
#include "HarmonicNotchFilter.h"
|
||||||
#include <GCS_MAVLink/GCS.h>
|
#include <GCS_MAVLink/GCS.h>
|
||||||
|
|
||||||
|
@ -4,7 +4,10 @@
|
|||||||
/// the downside being that it's a little slower as it internally uses a float
|
/// the downside being that it's a little slower as it internally uses a float
|
||||||
/// and it consumes an extra 4 bytes of memory to hold the constant gain
|
/// and it consumes an extra 4 bytes of memory to hold the constant gain
|
||||||
|
|
||||||
|
#ifndef HAL_DEBUG_BUILD
|
||||||
|
#define AP_INLINE_VECTOR_OPS
|
||||||
|
#pragma GCC optimize("O2")
|
||||||
|
#endif
|
||||||
#include "LowPassFilter.h"
|
#include "LowPassFilter.h"
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
#ifndef HAL_DEBUG_BUILD
|
||||||
|
#define AP_INLINE_VECTOR_OPS
|
||||||
|
#pragma GCC optimize("O2")
|
||||||
|
#endif
|
||||||
#include "LowPassFilter2p.h"
|
#include "LowPassFilter2p.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -13,6 +13,11 @@
|
|||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef HAL_DEBUG_BUILD
|
||||||
|
#define AP_INLINE_VECTOR_OPS
|
||||||
|
#pragma GCC optimize("O2")
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "NotchFilter.h"
|
#include "NotchFilter.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user