Skip to content

Controls

varun7654 edited this page Nov 30, 2021 · 20 revisions

The GUI is designed to be intuitive

If you're not sure on how to do something chances are the first thing that pops in your mind will work. The only place where this is not really true right now is with the textboxes. A complete rewrite of them is planned for the future.

Panning the camera

Simply click on any blank space and drag the mouse around

Zooming in and out

Scrolling the mouse will zoom in and out. On a trackpad you can simply use a two-finger scroll to zoom in and out. On some devices pinch-to-zoom should even work too.

Adding a new path

Click on the "plus" towards the bottom right corner.

Moving points around

Simply click on a point and drag it around. Currently the earlier points on the robot path are selected first -- even when another closer point is available. If you are having this issue, try zooming in or moving further away from the unwanted point that is being selected. A rework of this system is also planned to address this issue.

Deleting points

Right clicking on a point will delete it. On a trackpad you can perform a two finger click.

Adding points

Right clicking on a path (but not on another point) will create a new point. On a trackpad you can perform a two finger click.

Connecting paths

If two paths that execute sequentially don't have the same start and end points you get weird behavior. To ensure that two paths have the same end and start points you can connect them. To do this drag start of one path near the end of path that executes before it. Drop the path down and click again. The two paths should now have the same end and start point.

Using the right-hand panel (aka the Autonomous Timeline)

The autonomous timeline represents how the auto will run. On the robot each step (different colored section) will be executed from top to bottom.

In the above picture the robot will first sleep for 500ms, then drive the green path, then the blue path, and then finally the orange path.

Closing and opening a step

Sometimes the Auto Timeline can get quite cluttered. You can close and open each step by clicking on the colored heading.

Open Step

Closed Step

Editing points on a path manually

Sometimes it is desirable to manually input a position into a path. To do this click on the point to highlight it. Then, find the row in the Auto Timeline that has a dark background. You can then edit the numbers in the textbox to change the location of that point.

The text boxes are ordered left to right X, Y, Rotation (degrees)

Reordering Auto Steps

To reorder items in the Auto Timeline simply drag the step, using the colored section, to the desired position.

Adding a script step

Sometimes the robot will need to execute other parts of the robot code during auto. The script step allows you easily execute these commands from the GUI. It has a really basic syntax that can be used to execute robot code. Each new line is a new command. Each command contains a method and arguments (optional) that are separated by spaces. Comments can be added by starting a line with a # There is no support for semicolons, brackets, or another control loop logic. An example of a script is shown below.

sleep 500
setShooterSpeed 5000
shootBalls 5
openIntake
startIntake
print finished first script

For more information on how to implement this see: https://github.com/FRC3476/AutoBuilder/wiki/Integrating-this-project-into-your-robot-code#parserjava

About the warning symbol

If you see a warning icon that means something is probably wrong. NOTE: The warning symbol does not prevent you from doing anything. It simply exist to alert you to an issue.

If you see the warning symbol on a path step it means that first point on that path is not the same as the last point on the previous path. Click here to learn how to fix this.

If you see the warning symbol on a script step it means that your script it likely invalid. The method you are trying to call is probably not listed as a valid method that you can call or your arguments have been deemed invalid. If you are sure that there isn't an issue you can go ahead and ignore this warning.

Undo & redo

Undo and redo are supported. Simply press Ctrl + Z to undo and Ctrl + Shift + Z to redo