mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
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.