mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-04 22:17:01 +08:00
moved booz_test_imu to main test dir and renamed it to test_imu
This commit is contained in:
@@ -430,7 +430,7 @@ test_imu_aspirin.srcs = $(SRC_AIRBORNE)/mcu.c \
|
|||||||
$(SRC_ARCH)/mcu_arch.c \
|
$(SRC_ARCH)/mcu_arch.c \
|
||||||
$(SRC_ARCH)/stm32_exceptions.c \
|
$(SRC_ARCH)/stm32_exceptions.c \
|
||||||
$(SRC_ARCH)/stm32_vector_table.c\
|
$(SRC_ARCH)/stm32_vector_table.c\
|
||||||
booz/test/booz_test_imu.c
|
test/test_imu.c
|
||||||
|
|
||||||
test_imu_aspirin.CFLAGS += -DUSE_LED
|
test_imu_aspirin.CFLAGS += -DUSE_LED
|
||||||
test_imu_aspirin.srcs += $(SRC_ARCH)/led_hw.c
|
test_imu_aspirin.srcs += $(SRC_ARCH)/led_hw.c
|
||||||
|
|||||||
@@ -38,8 +38,6 @@
|
|||||||
|
|
||||||
#include "interrupt_hw.h"
|
#include "interrupt_hw.h"
|
||||||
|
|
||||||
#include "my_debug_servo.h"
|
|
||||||
|
|
||||||
static inline void main_init( void );
|
static inline void main_init( void );
|
||||||
static inline void main_periodic_task( void );
|
static inline void main_periodic_task( void );
|
||||||
static inline void main_event_task( void );
|
static inline void main_event_task( void );
|
||||||
@@ -129,7 +127,7 @@ static inline void on_accel_event(void) {
|
|||||||
static inline void on_gyro_accel_event(void) {
|
static inline void on_gyro_accel_event(void) {
|
||||||
ImuScaleGyro(imu);
|
ImuScaleGyro(imu);
|
||||||
|
|
||||||
LED_TOGGLE(2);
|
RunOnceEvery(50, LED_TOGGLE(2));
|
||||||
static uint8_t cnt;
|
static uint8_t cnt;
|
||||||
cnt++;
|
cnt++;
|
||||||
if (cnt > 15) cnt = 0;
|
if (cnt > 15) cnt = 0;
|
||||||
Reference in New Issue
Block a user