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:
commit
a06fa7569b
2 changed files with 40 additions and 0 deletions
39
src/main/target/DALRCF722DUAL/config.c
Normal file
39
src/main/target/DALRCF722DUAL/config.c
Normal 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
|
|
@ -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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue