fix(gps): synchronize complete raw navigation epochs

This commit is contained in:
2026-07-24 15:00:40 +03:00
parent fe0eb19dc5
commit e57b19b4ee
13 changed files with 344 additions and 116 deletions
+19 -2
View File
@@ -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