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

SBUS Fix Code Improvement

Uncomment Beeper for CC3D
This commit is contained in:
borisbstyle 2015-11-25 00:17:29 +01:00
parent 5ebfd23ca9
commit 8745ca53bb
2 changed files with 8 additions and 8 deletions

View file

@ -152,7 +152,7 @@ static void resetPidProfile(pidProfile_t *pidProfile)
pidProfile->P8[PITCH] = 40;
pidProfile->I8[PITCH] = 30;
pidProfile->D8[PITCH] = 18;
pidProfile->P8[YAW] = 95;
pidProfile->P8[YAW] = 100;
pidProfile->I8[YAW] = 50;
pidProfile->D8[YAW] = 10;
pidProfile->P8[PIDALT] = 50;
@ -167,8 +167,8 @@ static void resetPidProfile(pidProfile_t *pidProfile)
pidProfile->P8[PIDNAVR] = 25; // NAV_P * 10;
pidProfile->I8[PIDNAVR] = 33; // NAV_I * 100;
pidProfile->D8[PIDNAVR] = 83; // NAV_D * 1000;
pidProfile->P8[PIDLEVEL] = 20;
pidProfile->I8[PIDLEVEL] = 20;
pidProfile->P8[PIDLEVEL] = 50;
pidProfile->I8[PIDLEVEL] = 50;
pidProfile->D8[PIDLEVEL] = 100;
pidProfile->P8[PIDMAG] = 40;
pidProfile->P8[PIDVEL] = 120;

View file

@ -161,14 +161,14 @@ static void sbusDataReceive(uint16_t c)
if (sbusFramePosition < SBUS_FRAME_SIZE) {
sbusFrame.bytes[sbusFramePosition++] = (uint8_t)c;
}
if (sbusFramePosition < SBUS_FRAME_SIZE) {
sbusFrameDone = false;
} else {
sbusFrameDone = true;
if (sbusFramePosition < SBUS_FRAME_SIZE) {
sbusFrameDone = false;
} else {
sbusFrameDone = true;
#ifdef DEBUG_SBUS_PACKETS
debug[2] = sbusFrameTime;
#endif
}
}
}