mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-23 15:31:13 +08:00
VotedSensorsUpdate::imuPoll() copied the whole vehicle_imu_status of each IMU on every vehicle_imu sample (200 Hz or more) to read two error counters that are published at 10 Hz. Keep the latest counters and update them only when a new status arrives; the voter gets the same values as before. FlightTaskManualAcceleration::update() copied vehicle_local_position by value on every run, although it only reads it and the subscription only changes in updateInitialize(). Take it by reference. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>