Skip to content

Conversation

@L-Bolt
Copy link

@L-Bolt L-Bolt commented Jul 7, 2023

Introduced Changes

When a whistle is heard, it will send a random u8 to the game controller with the correct protocol by using bifrost.

ToDo / Known Issues

Errors are not handled correctly. Should not be merged into main but will suffice for the robocup branch.

If this is a WIP describe which problems are to be fixed.
Handle the possible errors of sending a message by using options.

Ideas for Next Iterations (Not This PR)

Implement the model with CompiledNN

How to Test

Check gamecontroller logs.

Describe how to test your changes. (For the reviewer)

@L-Bolt L-Bolt requested review from jkbkaiser and oxkitsune July 7, 2023 10:37

pub fn cycle(&mut self, context: CycleContext<impl Interface>) -> Result<()> {
if context.filtered_whistle.started_this_cycle {
if self.first {
Copy link
Contributor

Choose a reason for hiding this comment

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

This bool is probably not necessary.

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