mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +03:00
Merge remote-tracking branch 'multiwii/master'
Conflicts: obj/baseflight.hex src/config.c src/main.c src/mw.c src/mw.h src/serial_cli.c
This commit is contained in:
commit
e4c9fb585c
6 changed files with 13 additions and 12 deletions
4
src/mw.c
4
src/mw.c
|
@ -58,11 +58,11 @@ void annexCode(void)
|
|||
static uint8_t vbatTimer = 0;
|
||||
|
||||
// PITCH & ROLL only dynamic PID adjustemnt, depending on throttle value
|
||||
if (rcData[THROTTLE] < currentProfile.tpaBreakPoint) {
|
||||
if (rcData[THROTTLE] < currentProfile.tpa_breakpoint) {
|
||||
prop2 = 100;
|
||||
} else {
|
||||
if (rcData[THROTTLE] < 2000) {
|
||||
prop2 = 100 - (uint16_t)currentProfile.dynThrPID * (rcData[THROTTLE] - currentProfile.tpaBreakPoint) / (2000 - currentProfile.tpaBreakPoint);
|
||||
prop2 = 100 - (uint16_t)currentProfile.dynThrPID * (rcData[THROTTLE] - currentProfile.tpa_breakpoint) / (2000 - currentProfile.tpa_breakpoint);
|
||||
} else {
|
||||
prop2 = 100 - currentProfile.dynThrPID;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue