mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
Add of specific config for YuPiF4 targets
This commit is contained in:
parent
a3dea9d72d
commit
2947a0fe91
2 changed files with 40 additions and 0 deletions
39
src/main/target/YUPIF4/config.c
Normal file
39
src/main/target/YUPIF4/config.c
Normal file
|
@ -0,0 +1,39 @@
|
|||
/*
|
||||
* This file is part of Cleanflight.
|
||||
*
|
||||
* Cleanflight is free software: you can redistribute it and/or modify
|
||||
* it 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 is distributed in the hope that it 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 Cleanflight. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <platform.h>
|
||||
|
||||
#ifdef TARGET_CONFIG
|
||||
|
||||
#include "flight/pid.h"
|
||||
|
||||
// alternative defaults settings for YuPiF4 targets
|
||||
void targetConfiguration(void)
|
||||
{
|
||||
pidProfilesMutable(0)->pid[PID_ROLL].P = 35;
|
||||
pidProfilesMutable(0)->pid[PID_ROLL].I = 45;
|
||||
pidProfilesMutable(0)->pid[PID_ROLL].D = 30;
|
||||
pidProfilesMutable(0)->pid[PID_PITCH].P = 40;
|
||||
pidProfilesMutable(0)->pid[PID_PITCH].I = 50;
|
||||
pidProfilesMutable(0)->pid[PID_PITCH].D = 30;
|
||||
pidProfilesMutable(0)->pid[PID_YAW].P = 50;
|
||||
pidProfilesMutable(0)->pid[PID_YAW].I = 50;
|
||||
}
|
||||
#endif
|
|
@ -17,6 +17,7 @@
|
|||
|
||||
#pragma once
|
||||
#define TARGET_BOARD_IDENTIFIER "YPF4"
|
||||
#define TARGET_CONFIG
|
||||
|
||||
#define USBD_PRODUCT_STRING "YupiF4"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue