전체상품목록 바로가기

본문 바로가기

뒤로가기
현재 위치
  1. 게시판
  2. 기술자료실

기술자료실

ArduPilot Pull Request flash size check

이**** (ip:)
삭제하려면 비밀번호를 입력하세요.

As ArduPilot gains new features and drivers the overall code size (aka “flash”) naturally increases. We’ve reached the point where we need to check each Pull Request 11 (aka PR) to be sure that it doesn’t overflow beyond what will actually fit onto some representative boards. To make this easy we’ve enhanced our “autotests” (aka “CI”) so that it does this comparison automatically for each PR.

Below are two screenshots showing how you can view the change in flash size using my Gremsy PR as an example 11.



Of course if you do find your PR consumes significant amounts of flash (e.g. more than a few hundred bytes) then some additional code changes may be required. Normally this involves adding additional definitions (e.g. #ifdef !HAL_MINIMIZE_FEATURES) to ensure the feature is only included for boards with sufficient flash space but it may also involve “chunkifying” the library involved so that individual drivers can be enabled/disabled and then allow users to select exactly which drivers they need using the custom build server 4Here is an example PR that does this 3.

One of the core principals of AP is that we support a wide variety of flight controllers and sensors and we expect through the “chunkification” work on the libraries we can keep supporting even the older smaller boards for some time to come.


댓글 수정
취소 수정
댓글 입력

댓글달기

영문 대소문자/숫자/특수문자 중 2가지 이상 조합, 10자~16자 등록
/ byte
왼쪽의 문자를 공백없이 입력하세요.(대소문자구분)

회원에게만 댓글 작성 권한이 있습니다.