#34179·ardupilot

AP_Periph fails to apply defaults to dynamically allocated params

Author: frondersCreated Aug 26, 2026Updated Sep 25, 2026

Bug Report

Issue details

When running a custom AP_Periph build, the defaults.parm values are not applied to libraries that use var pointer backend params, like AP_BattMonitor, AP_RangeFinder, AP_TemperatureSensor etc. The problem is that these backend-specific parameters are allocated after AP_Param::load_all() during init.

Version AP_Periph 4.7.0

Platform [ ] All [ ] AntennaTracker [ ] Copter [ ] Plane [ ] Rover [ ] Submarine [x] AP_Periph

Hardware type Mateksys CAN Node L431

Proposed changes

Similar to Plane or Copter code in system.cpp add AP_Param::reload_defaults_file(true); call towards the end of AP_Periph::init() after all libraries init calls