ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

Add defines for experimental topics such as IMU to allow saving flash for unused topics

Open Ryanf55 opened this issue 1 year ago • 0 comments

Purpose

  • Experimental topics, such as IMU, should have an easy way to be disabled at compile time
  • This demonstrates a pattern to add in new topics at compile time
  • By updating to use the C++ topic table instead of the XML refs, AP now has full control at compile time over what's enabled in the interface
  • Note - IMU is a special case - it's super high rate, and largely useless unless you are doing offboard fusion, which reportedly has not performed as well). We don't want to clog our network with unused data.

Long term

  • Every topic could get a define. It might make the code hard to read - are we actually that flash conscious if using DDS? I wouldn't think so because a lot of flash-heavy features can be moved offboard like path planning, terrain, avoidance, fences, advanced failsafe, AP_follow, AP_MIssion, Proximity, SmartRTL, Soaring, WPNav.

Before merge

  • Add docs (wiki)

Ryanf55 avatar Sep 13 '24 23:09 Ryanf55