ArduPilot / ArduPilot/apm_planner

Widget: Primary Flight Display acts as a CPU hog after telemetry data

Open
#646 20 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C++
Stars
550
Forks
483
PR merge metrics
No merged PRs in 30d

Description

Go straight to https://github.com/ArduPilot/apm_planner/issues/646#issuecomment-221203527 for best info about how to reproduce

APM planner takes about 30% CPU time on a quad core 2.4Ghz laptop ftom the moment of serial connection. Reproducible on Intel graphics only, yet it's the apmplanner2 process that hogs CPU, not some drivers.
Disconnecting makes it drop less then 5% , to about 26%
This goes also for non-graphic views whithout maps/AHI

Please provide info on how to use gdb or other tools to report better if needed.

Contributor guide

Open the contributing guide

Research direction

Start with the reproduction details in issue comment 221203527 and profile apmplanner2 from serial connection through telemetry updates, focusing on the Primary Flight Display widget. Use gdb or another profiler as suggested; done means identifying and correcting the post-telemetry CPU increase and confirming CPU usage drops without disconnecting or changing views.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.