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

Fast segment display update hz #1638

Merged
merged 16 commits into from
May 23, 2022
Merged

Fast segment display update hz #1638

merged 16 commits into from
May 23, 2022

Conversation

toomanybrians
Copy link
Member

Updates the FAST Platform interface so that segment display updates are sent out at a configurable hz rate. Also updates some deprecated modules.

@sonarcloud
Copy link

sonarcloud bot commented May 23, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@toomanybrians toomanybrians merged commit c84b6df into missionpinball:dev May 23, 2022
@toomanybrians toomanybrians deleted the fast-segment-throttling branch May 23, 2022 22:03
self.net_connection.send('WD:' + str(hex(self.config['watchdog']))[2:])
except:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we ignore all errors here? I am certain that this breaks the linter (which is not currently running in CI).

@@ -268,7 +276,7 @@ def process_received_message(self, msg: str, remote_processor: str):
self.log.warning("Received malformed message: %s from %s", msg, remote_processor)
return

# Can't use try since it swallows too many errors for now
# Can't use try since it swallows too many errors for now #TODO
Copy link
Collaborator

Choose a reason for hiding this comment

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

Double comment


if self.fast_segs:
self._seg_task = self.machine.clock.schedule_interval(self._update_segs,
1 / self.machine.config['fast'][
Copy link
Collaborator

Choose a reason for hiding this comment

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

Invalid indent. Please run a linter.

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