Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AP_Scripting: add missing defines to build on Periph #25183

Merged
merged 9 commits into from
Oct 16, 2023

Conversation

IamPete1
Copy link
Member

@IamPete1 IamPete1 commented Oct 4, 2023

This work is sponsored by Spektreworks.

This adds defines such that scripting can run on periph with most everything else disabled, obviously we already run on vehicles with everything else enabled, I have not tested all possible combinations in between.

With everything else turned off the flash cost is around 100k but as you add back in more library's the extra bindings means the over head increases. Its only really practical with 512kB flash or more. To use you would have to enable romfs and embed the script into the firmware.

I have tested a "hello world" script on a CubeBlack periph heavy build.

Copy link
Contributor

@peterbarker peterbarker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reviewed a single patch...

libraries/AP_Scripting/AP_Scripting_config.h Outdated Show resolved Hide resolved
libraries/AP_Scripting/AP_Scripting_config.h Outdated Show resolved Hide resolved
@rmackay9
Copy link
Contributor

rmackay9 commented Oct 9, 2023

Looks great but maybe we need a simple autotest to be sure we get a warning when a new binding breaks this again?

@tridge tridge merged commit 105801c into ArduPilot:master Oct 16, 2023
87 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants