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

Refactor handling of RC input data #4232

Merged
merged 1 commit into from
Mar 18, 2019
Merged

Refactor handling of RC input data #4232

merged 1 commit into from
Mar 18, 2019

Conversation

fiam
Copy link
Member

@fiam fiam commented Jan 19, 2019

  • Remove globals rcData and rcRaw
  • Use accesor functions to retrieve RX input data
  • Refactor rx.c to use an array of structs instead of multiple arrays
  • Drop the RC Preview menu from CMS. Implementing this without
    globals requires significant flash and the usefulness of this menu
    is questionable. If we get complains, we can add it back later.

Flash usage goes down ~250 bytes due to the removed menu. Final
binary is mostly unaffected, since LTO is able to inline the new
accessor functions in most cases.

This PR is the RX part of #4220, to make reviewing it a bit more bearable

@fiam fiam force-pushed the agh_refactor_rcdata branch from 613ba2e to b429d15 Compare January 19, 2019 21:43
@fiam fiam force-pushed the agh_refactor_rcdata branch from b429d15 to daf9e3a Compare March 10, 2019 21:46
- Remove globals rcData and rcRaw
- Use accesor functions to retrieve RX input data
- Refactor rx.c to use an array of structs instead of multiple arrays
- Drop the RC Preview menu from CMS. Implementing this without
globals requires significant flash and the usefulness of this menu
is questionable. If we get complains, we can add it back later.

Flash usage goes down ~250 bytes due to the removed menu. Final
binary is mostly unaffected, since LTO is able to inline the new
accessor functions in most cases.
@fiam fiam force-pushed the agh_refactor_rcdata branch from daf9e3a to d524d8c Compare March 10, 2019 21:50
@fiam fiam added this to the 2.2 milestone Mar 18, 2019
@fiam fiam merged commit 56474ce into development Mar 18, 2019
@fiam fiam deleted the agh_refactor_rcdata branch March 18, 2019 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant