mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-25 14:35:51 +08:00
[tools][conf] add TELEMETRY_FREQUENCY in generated/periodic_telemetry.h
This commit is contained in:
@@ -84,9 +84,6 @@ endif
|
||||
PERIODIC_FREQUENCY ?= 512
|
||||
ap.CFLAGS += -DPERIODIC_FREQUENCY=$(PERIODIC_FREQUENCY)
|
||||
|
||||
TELEMETRY_FREQUENCY ?= 60
|
||||
ap.CFLAGS += -DTELEMETRY_FREQUENCY=$(TELEMETRY_FREQUENCY)
|
||||
|
||||
#
|
||||
# Systime
|
||||
#
|
||||
|
||||
@@ -60,9 +60,6 @@ $(TARGET).CFLAGS += -DTRAFFIC_INFO
|
||||
PERIODIC_FREQUENCY ?= 60
|
||||
$(TARGET).CFLAGS += -DPERIODIC_FREQUENCY=$(PERIODIC_FREQUENCY)
|
||||
|
||||
TELEMETRY_FREQUENCY ?= 60
|
||||
$(TARGET).CFLAGS += -DTELEMETRY_FREQUENCY=$(TELEMETRY_FREQUENCY)
|
||||
|
||||
$(TARGET).srcs += mcu_periph/sys_time.c $(SRC_ARCH)/mcu_periph/sys_time_arch.c
|
||||
$(TARGET).CFLAGS += -DUSE_SYS_TIME
|
||||
|
||||
|
||||
@@ -69,9 +69,7 @@ nps.srcs += $(SRC_ARCH)/mcu_periph/i2c_arch.c
|
||||
|
||||
|
||||
PERIODIC_FREQUENCY ?= 512
|
||||
TELEMETRY_FREQUENCY ?= 60
|
||||
nps.CFLAGS += -DPERIODIC_FREQUENCY=$(PERIODIC_FREQUENCY)
|
||||
nps.CFLAGS += -DTELEMETRY_FREQUENCY=$(TELEMETRY_FREQUENCY)
|
||||
#nps.CFLAGS += -DUSE_LED
|
||||
nps.srcs += mcu_periph/sys_time.c $(SRC_ARCH)/mcu_periph/sys_time_arch.c
|
||||
|
||||
|
||||
@@ -106,9 +106,9 @@ PRINT_CONFIG_VAR(PERIODIC_FREQUENCY)
|
||||
PRINT_CONFIG_VAR(NAVIGATION_FREQUENCY)
|
||||
PRINT_CONFIG_VAR(CONTROL_FREQUENCY)
|
||||
|
||||
#ifndef TELEMETRY_FREQUENCY
|
||||
#define TELEMETRY_FREQUENCY 60
|
||||
#endif
|
||||
/* TELEMETRY_FREQUENCY is defined in generated/periodic_telemetry.h
|
||||
* defaults to 60Hz or set by TELEMETRY_FREQUENCY configure option in airframe file
|
||||
*/
|
||||
PRINT_CONFIG_VAR(TELEMETRY_FREQUENCY)
|
||||
|
||||
/* MODULES_FREQUENCY is defined in generated/modules.h
|
||||
|
||||
@@ -77,9 +77,9 @@
|
||||
/* if PRINT_CONFIG is defined, print some config options */
|
||||
PRINT_CONFIG_VAR(PERIODIC_FREQUENCY)
|
||||
|
||||
#ifndef TELEMETRY_FREQUENCY
|
||||
#define TELEMETRY_FREQUENCY 60
|
||||
#endif
|
||||
/* TELEMETRY_FREQUENCY is defined in generated/periodic_telemetry.h
|
||||
* defaults to 60Hz or set by TELEMETRY_FREQUENCY configure option in airframe file
|
||||
*/
|
||||
PRINT_CONFIG_VAR(TELEMETRY_FREQUENCY)
|
||||
|
||||
/* MODULES_FREQUENCY is defined in generated/modules.h
|
||||
|
||||
@@ -142,6 +142,7 @@ let _ =
|
||||
fprintf out_h "#define _VAR_PERIODIC_H_\n\n";
|
||||
fprintf out_h "#include \"std.h\"\n";
|
||||
fprintf out_h "#include \"generated/airframe.h\"\n\n";
|
||||
fprintf out_h "#define TELEMETRY_FREQUENCY %d\n\n" freq;
|
||||
|
||||
(** For each process *)
|
||||
List.iter
|
||||
|
||||
Reference in New Issue
Block a user