mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-09-25 23:55:28 +08:00
Run() published heater_status at both GPIO edges, 200 Hz for a 100 Hz controller, and the default log profile recorded it at full rate. At 100 % duty the off phase ran with a zero delay, so the element was switched off and back on every period and heater_on read false for that instant. heater_current and supply_voltage were battery_status.current_a and voltage_v, already logged there, and nominal_multiplier read 0 unless HEATERn_NOM_V compensation was active. The off phase no longer publishes and is skipped at full duty; the status goes out once per controller cycle with heater_on meaning the element is driven this period. The two battery fields are removed (the voltage is still read for the V_nom compensation), nominal_multiplier is 1 when no scaling is applied, and heater_status is logged at 1 Hz by default. Assisted-by: Claude:claude-fable-5 Signed-off-by: Jacob Dahl <dahl.jakejacob@gmail.com>