1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-21 15:25:36 +03:00

Merge pull request #6643 from nyway/master

Change DALRCF722DUAL gyroMovementCalibrationThreshold default value
This commit is contained in:
Michael Keller 2018-08-28 21:09:41 +12:00 committed by GitHub
commit a06fa7569b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,39 @@
/*
* 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 <stdint.h>
#include "platform.h"
#ifdef TARGET_VALIDATECONFIG
#include "fc/config.h"
#include "sensors/gyro.h"
void targetValidateConfiguration(void)
{
if (gyroConfig()->gyro_use_32khz && gyroConfig()->gyroMovementCalibrationThreshold < 148) {
gyroConfigMutable()->gyroMovementCalibrationThreshold = 148;
}
}
#endif

View file

@ -19,6 +19,7 @@
*/ */
#pragma once #pragma once
#define TARGET_VALIDATECONFIG
#define TARGET_BOARD_IDENTIFIER "DLF7" #define TARGET_BOARD_IDENTIFIER "DLF7"
#define USBD_PRODUCT_STRING "DALRCF722DUAL" #define USBD_PRODUCT_STRING "DALRCF722DUAL"