ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

Copter: fix compilation when GUIDED, AUTO and CIRCLE modes are disabled

Open tatsuy opened this issue 3 years ago • 2 comments

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.

tatsuy avatar Jun 05 '22 00:06 tatsuy

Sorry, this needs a rebase.

peterbarker avatar Sep 15 '22 01:09 peterbarker

rebased!

tatsuy avatar Sep 15 '22 13:09 tatsuy

@peterbarker Could you check this again?

tatsuy avatar Nov 08 '22 06:11 tatsuy

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.

tatsuy avatar Dec 19 '22 07:12 tatsuy

Merged, thanks!

rmackay9 avatar Dec 22 '22 04:12 rmackay9

Thank you!

tatsuy avatar Dec 22 '22 13:12 tatsuy