fix(gps): synchronize complete raw navigation epochs
This commit is contained in:
@@ -6,7 +6,7 @@ TARGETS := test_imu_calibration test_gps_nav_epoch \
|
||||
test_gps_nav_epoch_coalescing test_gps_time_anchor \
|
||||
test_plic_warm_reset
|
||||
|
||||
.PHONY: all run clean
|
||||
.PHONY: all run sanitize clean
|
||||
|
||||
all: $(TARGETS)
|
||||
|
||||
@@ -32,5 +32,22 @@ run: $(TARGETS)
|
||||
./test_gps_time_anchor
|
||||
./test_plic_warm_reset
|
||||
|
||||
sanitize:
|
||||
$(CC) -O1 -g -std=c11 -Wall -Wextra -Werror \
|
||||
-fsanitize=address,undefined -fno-omit-frame-pointer \
|
||||
-I$(ROOT)/header test_gps_nav_epoch.c \
|
||||
$(ROOT)/src/gps/gps_nav_epoch.c -lm \
|
||||
-o test_gps_nav_epoch_san
|
||||
ASAN_OPTIONS=detect_leaks=1:halt_on_error=1 \
|
||||
UBSAN_OPTIONS=halt_on_error=1 ./test_gps_nav_epoch_san
|
||||
$(CC) -O1 -g -std=c11 -Wall -Wextra -Werror \
|
||||
-fsanitize=address,undefined -fno-omit-frame-pointer \
|
||||
-I$(ROOT)/header test_gps_nav_epoch_coalescing.c \
|
||||
$(ROOT)/src/gps/gps_nav_epoch.c -lm \
|
||||
-o test_gps_nav_epoch_coalescing_san
|
||||
ASAN_OPTIONS=detect_leaks=1:halt_on_error=1 \
|
||||
UBSAN_OPTIONS=halt_on_error=1 ./test_gps_nav_epoch_coalescing_san
|
||||
|
||||
clean:
|
||||
rm -f $(TARGETS) test_gps_nav_epoch_coalescing_repro
|
||||
rm -f $(TARGETS) test_gps_nav_epoch_coalescing_repro \
|
||||
test_gps_nav_epoch_san test_gps_nav_epoch_coalescing_san
|
||||
|
||||
Reference in New Issue
Block a user