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

Pod program cannot be run without cross-compilation #40

Closed
taesungh opened this issue May 6, 2024 · 1 comment · Fixed by #113
Closed

Pod program cannot be run without cross-compilation #40

taesungh opened this issue May 6, 2024 · 1 comment · Fixed by #113
Assignees

Comments

@taesungh
Copy link
Member

taesungh commented May 6, 2024

Following from #1/#20 and #7/#23, we decided on using RPPAL for peripheral control and providing ways to cross-compile for the Raspberry Pi's architecture. However, RPPAL will not compile on operating systems other than Linux, and will generally be unusable (e.g. UnknownModel error) when not running on a Raspberry Pi.

To allow testing other non-peripheral components of the pod-operation program such as the FSM, we'll need to incorporate some form of mocking and conditional compilation. One possible option is using dbrgn/embedded-hal-mock and using the cfg macro to substitute for RPPAL when not building for the Raspberry Pi.

@taesungh
Copy link
Member Author

taesungh commented Jun 1, 2024

Reprioritizing this to make it easier to test the GUI with the FSM without needing to disable all of the RPPAL components. embedded-hal-mock places some constraints on expectations of values which is a little too strict for our purposes. We might instead consider just adding our own mock implementations of the higher-level component methods which provide placeholder values without interfacing through RPPAL.

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 a pull request may close this issue.

1 participant