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

Code Simulation: Configuration & Auto Testing #1111

Open
wants to merge 29 commits into
base: dev
Choose a base branch
from

Conversation

HunterBarclay
Copy link
Member

Brain Configuration

Inside the config panel, you can now switch between the Synthesis Brain and the WPILib Brain. This changes the available options in the config panel, depending on the controlling brain. When WPILib Brain is in use, you can access simulation configuration to access the Wiring Panel and the Auto Tester.

image

image

Wiring Panel

The wiring panel can be used to make connections between the inputs and outputs of the simulation and the robot. Handles are labeled and colored according to the data type their represent. There is a very barebones language built into the wiring panel, but it needs to be extends to fully be taken advantage of in the future. The wiring panel changes are saved to the mirabuf assembly and the robot io module is auto generated based on the currently connected WPILib program. There are available tooltips and reset buttons to regenerate certain nodes.

image

Connection Overlay

When using WPILib brain, the connection status to the WPILib program will be show in the top-right corner.

image

Auto Tester

The auto tester is a panel that can be used to stage the robot, setup initial configuration for the driver station, run an autonomous routine for a set time, stop the simulation, and reset everything to repeat it.

image

image

Additional Bits and Bobs

  • Intake and Ejector are now configurable with code simulation. A number input of great than 0.5 will activate them.
  • Relative Encoders for Spark maxes have been added, but not tested.
  • DIO do work as separate devices, but aren't complete and are hidden for the time being.
  • Context menu updates, at this point I don't even use the HUD anymore.
  • When using code simulation, the robots nametag changes to "Magic".

AARD-1864

@HunterBarclay HunterBarclay self-assigned this Dec 15, 2024
@HunterBarclay HunterBarclay requested review from a team as code owners December 15, 2024 02:34
@HunterBarclay HunterBarclay requested review from a-crowell, LucaHaverty, BrandonPacewic and Dhruv-0-Arora and removed request for a team December 15, 2024 02:34
@autodesk-chorus
Copy link

Chorus detected one or more security issues with this pull request. See the Checks tab for more details.

As a reminder, please follow the secure code review process as part of the Secure Coding Non-Negotiable requirement.

@HunterBarclay HunterBarclay changed the title [] Code Simulation: Configuration & Auto Testing Code Simulation: Configuration & Auto Testing Dec 15, 2024
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