mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
do not allocate unnecessary memory in logging app
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
#
|
||||
############################################################################
|
||||
if (${OS} STREQUAL "nuttx")
|
||||
list(APPEND MODULE_CFLAGS -Wframe-larger-than=2500)
|
||||
list(APPEND MODULE_CFLAGS -Wframe-larger-than=1600)
|
||||
endif()
|
||||
px4_add_module(
|
||||
MODULE modules__sdlog2
|
||||
|
||||
@@ -337,7 +337,7 @@ int sdlog2_main(int argc, char *argv[])
|
||||
deamon_task = px4_task_spawn_cmd("sdlog2",
|
||||
SCHED_DEFAULT,
|
||||
task_priority,
|
||||
4200,
|
||||
3400,
|
||||
sdlog2_thread_main,
|
||||
(char * const *)argv);
|
||||
|
||||
@@ -1384,11 +1384,9 @@ int sdlog2_thread_main(int argc, char *argv[])
|
||||
} else {
|
||||
// copy topic
|
||||
if (record_replay_log) {
|
||||
struct ekf2_replay_s replay;
|
||||
orb_copy(ORB_ID(ekf2_replay), subs.replay_sub, &replay);
|
||||
orb_copy(ORB_ID(ekf2_replay), subs.replay_sub, &buf.replay);
|
||||
} else {
|
||||
struct sensor_combined_s sensors;
|
||||
orb_copy(ORB_ID(sensor_combined), subs.sensor_sub, &sensors);
|
||||
orb_copy(ORB_ID(sensor_combined), subs.sensor_sub, &buf.sensor);
|
||||
}
|
||||
poll_counter++;
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user