mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-29 19:17:28 +08:00
This commit is contained in:
@@ -135,7 +135,7 @@ test_usb.ARCH = arm7tdmi
|
|||||||
test_usb.TARGET = test_usb
|
test_usb.TARGET = test_usb
|
||||||
test_usb.TARGETDIR = test_usb
|
test_usb.TARGETDIR = test_usb
|
||||||
|
|
||||||
test_usb.CFLAGS += -DBOARD_CONFIG=\"booz2_board_usb.h\" $(BOOZ_CFLAGS)
|
test_usb.CFLAGS += -DBOARD_CONFIG=$(BOARD_CFG) $(BOOZ_CFLAGS)
|
||||||
test_usb.srcs += $(SRC_BOOZ_TEST)/booz2_test_usb.c
|
test_usb.srcs += $(SRC_BOOZ_TEST)/booz2_test_usb.c
|
||||||
test_usb.CFLAGS += -DPERIODIC_TASK_PERIOD='SYS_TICS_OF_SEC((1./512.))'
|
test_usb.CFLAGS += -DPERIODIC_TASK_PERIOD='SYS_TICS_OF_SEC((1./512.))'
|
||||||
# -DTIME_LED=1
|
# -DTIME_LED=1
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ extern uint8_t telemetry_mode_Main_DefaultChannel;
|
|||||||
uint8_t _twi_blmc_nb_err = 0; \
|
uint8_t _twi_blmc_nb_err = 0; \
|
||||||
DOWNLINK_SEND_BOOZ_STATUS(_chan, \
|
DOWNLINK_SEND_BOOZ_STATUS(_chan, \
|
||||||
&booz_imu_nb_err, \
|
&booz_imu_nb_err, \
|
||||||
&_twi_blmc_nb_err, \
|
&_twi_blmc_nb_err, \
|
||||||
&radio_control.status, \
|
&radio_control.status, \
|
||||||
&booz_gps_state.fix, \
|
&booz_gps_state.fix, \
|
||||||
&booz2_autopilot_mode, \
|
&booz2_autopilot_mode, \
|
||||||
|
|||||||
@@ -28,7 +28,6 @@
|
|||||||
#include "sys_time.h"
|
#include "sys_time.h"
|
||||||
#include "led.h"
|
#include "led.h"
|
||||||
|
|
||||||
//#include "uart.h"
|
|
||||||
#include "usb_serial.h"
|
#include "usb_serial.h"
|
||||||
|
|
||||||
#include "messages.h"
|
#include "messages.h"
|
||||||
@@ -56,7 +55,6 @@ static inline void main_init( void ) {
|
|||||||
sys_time_init();
|
sys_time_init();
|
||||||
led_init();
|
led_init();
|
||||||
|
|
||||||
//uart1_init_tx();
|
|
||||||
VCOM_init();
|
VCOM_init();
|
||||||
|
|
||||||
int_enable();
|
int_enable();
|
||||||
@@ -65,7 +63,7 @@ static inline void main_init( void ) {
|
|||||||
static inline void main_periodic_task( void ) {
|
static inline void main_periodic_task( void ) {
|
||||||
RunOnceEvery(10, {
|
RunOnceEvery(10, {
|
||||||
LED_TOGGLE(1);
|
LED_TOGGLE(1);
|
||||||
DOWNLINK_SEND_ALIVE(16, MD5SUM);
|
DOWNLINK_SEND_ALIVE(PprzTransport,16, MD5SUM);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user