mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 11:29:58 +03:00
fixing initializion for anglesrad[]
add drv_softserial to common drivers in Makefile git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@436 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
This commit is contained in:
parent
c682f1f21e
commit
07055c8872
2 changed files with 2 additions and 2 deletions
2
Makefile
2
Makefile
|
@ -60,6 +60,7 @@ COMMON_SRC = startup_stm32f10x_md_gcc.S \
|
||||||
drv_i2c_soft.c \
|
drv_i2c_soft.c \
|
||||||
drv_system.c \
|
drv_system.c \
|
||||||
drv_serial.c \
|
drv_serial.c \
|
||||||
|
drv_softserial.c \
|
||||||
drv_uart.c \
|
drv_uart.c \
|
||||||
printf.c \
|
printf.c \
|
||||||
utils.c \
|
utils.c \
|
||||||
|
@ -98,7 +99,6 @@ OLIMEXINO_SRC = drv_spi.c \
|
||||||
drv_l3g4200d.c \
|
drv_l3g4200d.c \
|
||||||
drv_pwm.c \
|
drv_pwm.c \
|
||||||
drv_timer.c \
|
drv_timer.c \
|
||||||
drv_softserial.c \
|
|
||||||
$(COMMON_SRC)
|
$(COMMON_SRC)
|
||||||
|
|
||||||
# Search path for baseflight sources
|
# Search path for baseflight sources
|
||||||
|
|
|
@ -26,7 +26,7 @@ float accVelScale;
|
||||||
int16_t gyroData[3] = { 0, 0, 0 };
|
int16_t gyroData[3] = { 0, 0, 0 };
|
||||||
int16_t gyroZero[3] = { 0, 0, 0 };
|
int16_t gyroZero[3] = { 0, 0, 0 };
|
||||||
int16_t angle[2] = { 0, 0 }; // absolute angle inclination in multiple of 0.1 degree 180 deg = 1800
|
int16_t angle[2] = { 0, 0 }; // absolute angle inclination in multiple of 0.1 degree 180 deg = 1800
|
||||||
float anglerad[2] = { 0, 0 }; // absolute angle inclination in radians
|
float anglerad[2] = { 0.0f, 0.0f }; // absolute angle inclination in radians
|
||||||
|
|
||||||
static void getEstimatedAttitude(void);
|
static void getEstimatedAttitude(void);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue