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

[telemetry] store periodic telemetry msg names as const to save ram #1151

Merged
merged 2 commits into from
Mar 30, 2015

Conversation

flixr
Copy link
Member

@flixr flixr commented Mar 27, 2015

Make sure that the msg names are stored in rom (.text) and not ram (.data) by making them const.
Since the callbacks are not const, replace the telemetry_msg struct by typedef for only the name and separate callback array.

This saves ~ 2.5k of RAM with a standard telemetry file, which is really nice if you try to run Paparazzi on a low end board like the CC3D with only 20k RAM.

@flixr flixr added the Airborne label Mar 28, 2015
@gautierhattenberger
Copy link
Member

I'm fine with this

@flixr flixr merged commit 38e0c49 into master Mar 30, 2015
@flixr flixr deleted the const_msg_names branch March 30, 2015 13:32
@flixr flixr added this to the v5.6 milestone Mar 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants