mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
Renamed 'gyro_filter_impl.h' to 'gyro_filter_impl.c'.
This commit is contained in:
parent
915de9d6db
commit
5fded1b56f
2 changed files with 24 additions and 2 deletions
|
@ -1006,13 +1006,13 @@ static FAST_CODE void checkForYawSpin(gyroSensor_t *gyroSensor, timeUs_t current
|
||||||
|
|
||||||
#define GYRO_FILTER_FUNCTION_NAME filterGyro
|
#define GYRO_FILTER_FUNCTION_NAME filterGyro
|
||||||
#define GYRO_FILTER_DEBUG_SET(mode, index, value) { UNUSED(mode); UNUSED(index); UNUSED(value); }
|
#define GYRO_FILTER_DEBUG_SET(mode, index, value) { UNUSED(mode); UNUSED(index); UNUSED(value); }
|
||||||
#include "gyro_filter_impl.h"
|
#include "gyro_filter_impl.c"
|
||||||
#undef GYRO_FILTER_FUNCTION_NAME
|
#undef GYRO_FILTER_FUNCTION_NAME
|
||||||
#undef GYRO_FILTER_DEBUG_SET
|
#undef GYRO_FILTER_DEBUG_SET
|
||||||
|
|
||||||
#define GYRO_FILTER_FUNCTION_NAME filterGyroDebug
|
#define GYRO_FILTER_FUNCTION_NAME filterGyroDebug
|
||||||
#define GYRO_FILTER_DEBUG_SET DEBUG_SET
|
#define GYRO_FILTER_DEBUG_SET DEBUG_SET
|
||||||
#include "gyro_filter_impl.h"
|
#include "gyro_filter_impl.c"
|
||||||
#undef GYRO_FILTER_FUNCTION_NAME
|
#undef GYRO_FILTER_FUNCTION_NAME
|
||||||
#undef GYRO_FILTER_DEBUG_SET
|
#undef GYRO_FILTER_DEBUG_SET
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,25 @@
|
||||||
|
/*
|
||||||
|
* This file is part of Cleanflight and Betaflight.
|
||||||
|
*
|
||||||
|
* Cleanflight and Betaflight are free software. You can redistribute
|
||||||
|
* this software and/or modify this software under the terms of the
|
||||||
|
* GNU General Public License as published by the Free Software
|
||||||
|
* Foundation, either version 3 of the License, or (at your option)
|
||||||
|
* any later version.
|
||||||
|
*
|
||||||
|
* Cleanflight and Betaflight are distributed in the hope that they
|
||||||
|
* will be useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||||
|
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
* See the GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this software.
|
||||||
|
*
|
||||||
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "platform.h"
|
||||||
|
|
||||||
static FAST_CODE void GYRO_FILTER_FUNCTION_NAME(gyroSensor_t *gyroSensor)
|
static FAST_CODE void GYRO_FILTER_FUNCTION_NAME(gyroSensor_t *gyroSensor)
|
||||||
{
|
{
|
||||||
for (int axis = 0; axis < XYZ_AXIS_COUNT; axis++) {
|
for (int axis = 0; axis < XYZ_AXIS_COUNT; axis++) {
|
Loading…
Add table
Add a link
Reference in a new issue