ardupilot
ardupilot copied to clipboard
Copter: fix compilation when GUIDED, AUTO and CIRCLE modes are disabled
This allows compilation when GUIDED, AUTO and CIRCLE modes are disabled.
I've confirmed that the compilation succeeds when the following combinations are disabled.
- AUTO
- AUTO and CIRCLE
- AUTO and GUIDED
- AUTO, CIRCLE and GUIDED
CIRCLE / GUIDED are dependent on AUTO , so it cannot be disabled independently.
Sorry, this needs a rebase.
rebased!
@peterbarker Could you check this again?
rebased
CubeBlack
Target Text (B) Data (B) BSS (B) Total Flash Used (B) Free Flash (B)
---------------------------------------------------------------------------------
bin/arducopter 1711600 3476 193360 1715076 365680
bin/arducopter 1693580 3476 193364 1697056 383696 disabled AUTO
bin/arducopter 1690756 3476 193364 1694232 386520 disabled AUTO and CIRCLE
bin/arducopter 1680788 3472 193364 1684260 396504 disabled AUTO and GUIDED
bin/arducopter 1677984 3472 193360 1681456 399312 disabled AUTO, CIRCLE and GUIDED
compared the flash size with disabled FOLLOW, GUIDED_NOGPS and ADSB due to dependencies with Guided mode.
Merged, thanks!
Thank you!