Files
ardupilot/libraries/AP_AdvancedFailsafe
Peter Barker 26002c71fa AP_AdvancedFailsafe: return a reference from AP::mission()
Every vehicle which compiles mission support in also instantiates an
AP_Mission object, so the singleton is never null.  Returning a
reference rather than a pointer says so, and lets the nullptr checks at
each call site go away.

Saves around 150 bytes of flash per firmware.
2026-07-29 18:18:35 +10:00
..