1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 01:05:27 +03:00

Merge pull request #3064 from Faduf/SpecificPID

Add of specific config for YuPiF4 targets
This commit is contained in:
Michael Keller 2017-05-11 07:53:40 +12:00 committed by GitHub
commit e50ae31e83
2 changed files with 40 additions and 0 deletions

View 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

View file

@ -17,6 +17,7 @@
#pragma once
#define TARGET_BOARD_IDENTIFIER "YPF4"
#define TARGET_CONFIG
#define USBD_PRODUCT_STRING "YupiF4"