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

Add PanelTestMode suppport to smx class #42

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

fchorney
Copy link
Collaborator

Modeled off of source code, but not tested. Will need a checkbox/slider to turn panel test mode on and off

Comment on lines +320 to +321
this.testModeIntervalHandle = setInterval(() => {
this.events.output$.push(Uint8Array.of(API_COMMAND.SET_PANEL_TEST_MODE, mode));
Copy link
Owner

Choose a reason for hiding this comment

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

Hmm, I think there's probably a better way to do this with the BaconJS interval to generate a stream of regular events that we can use for this. I'll add the UI for this first and worry about thinking through the better version of this interval later

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

oh yeah interesting. Would just need a way to tell it to stop since it says indefinitely.

Copy link
Owner

@noahm noahm May 24, 2024

Choose a reason for hiding this comment

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

Yup, I think you would chain the interval stream with a takeUntil that watches another event stream (maybe a bus we can manually emit from) for a stop signal.

Comment on lines +323 to +324
// TODO: Do I need to call this to consume the event?
this.events.ackReports$.firstToPromise();
Copy link
Owner

@noahm noahm May 16, 2024

Choose a reason for hiding this comment

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

I don't think you need to worry about consuming these. I think because they are acks to unattended commands we can just let them silently discarded in the background.

@noahm
Copy link
Owner

noahm commented May 16, 2024

Can't test today, but added a checkbox in the UI for this

@noahm
Copy link
Owner

noahm commented Feb 2, 2025

Decided to finally come back to this for some reason... (no mystery on why it took so long, PR was originally opened 4 days before my son was born 😁)

Turning on test mode does turn off the lights on the pad, but I'm not actually getting any of the test mode lights in place of the idle patterns. I have to assume this is an issue with our app since my stages work as expected with the pressure test mode toggle in the SMX software (don't have a convenient way to test the windows config app right now)

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.

2 participants