mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 22:35:23 +03:00
a couple optimizations for dynamic HSE frequency - moved SetSysClock() to run after reset vector + bss init, and changed rcc which used hardcoded HSE_VALUE.
turn off leds/beeper before initializing pins to prevent flash at startup uninitialized errorAngle fix in new PID git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@362 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
This commit is contained in:
parent
3afeb3d1c8
commit
57cbd784a9
11 changed files with 3091 additions and 3036 deletions
2
src/mw.c
2
src/mw.c
|
@ -342,7 +342,7 @@ static void pidMultiWii(void)
|
|||
|
||||
static void pidRewrite(void)
|
||||
{
|
||||
int32_t errorAngle;
|
||||
int32_t errorAngle = 0;
|
||||
int axis;
|
||||
int32_t delta, deltaSum;
|
||||
static int32_t delta1[3], delta2[3];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue