From 001817022a9dfeaca3aebbb3304f70312e464a3d Mon Sep 17 00:00:00 2001 From: gguidone Date: Fri, 31 Jul 2026 14:03:07 +0200 Subject: [PATCH] feat(boards/px4/fmu-v4): default EKF2_LOG_VERBOSE off The verbose estimator uORB nodes cost heap this board does not have. Measured on hardware with EKF2 running and two MAVLink instances up: 7440 B free at 0 against 3696 B at 1. Effect: 3744 B returned. On this board that is not optional headroom. With the receive stack fix alone and this parameter at its upstream default, the board comes up and streams telemetry but answers no request at all, no PARAM_VALUE and no COMMAND_ACK, and a ground station hangs requesting capabilities. Cost: the default logging profile picks up estimator* topics by name prefix at 2 Hz via add_optional_topic_multi, which only logs advertised topics, so turning it off removes innovations, variances, test ratios, states, the aid_src_* set and the bias topics, and Flight Review's innovation plots go empty on this board. estimator_status still carries the filtered test ratios, filter fault flags, reset counters and pre_flt_fail_innov_*, and replay still works because SDLOG_PROFILE bit 1 logs EKF2's inputs. Applied with param set-default so an operator can opt back in. rcS sources rc.board_defaults at line 280 and starts ekf2 at 437, and EKF2 reads the parameter in its constructor, so the default lands in time. Note a board with this parameter explicitly saved keeps its saved value. --- boards/px4/fmu-v4/init/rc.board_defaults | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boards/px4/fmu-v4/init/rc.board_defaults b/boards/px4/fmu-v4/init/rc.board_defaults index 275644b21f8..d2fe1bcce18 100644 --- a/boards/px4/fmu-v4/init/rc.board_defaults +++ b/boards/px4/fmu-v4/init/rc.board_defaults @@ -6,4 +6,6 @@ param set-default BAT1_V_DIV 13.653333333 param set-default BAT1_A_PER_V 36.367515152 +param set-default EKF2_LOG_VERBOSE 0 + safety_button start