Welcome to the seamonsters library documentation!¶
This is Team 2605’s Python library for robot code. It builds on Wpilib/RobotPy and adds useful utilities for working with input, drivetrains, generators, and RobotPy’s robot simulator, along with a custom dashboard.
Index:¶
|
Calculates acceleration filtering for drive inputs (magnitude, direction, turn). |
|
Value to signal that a new generator should be added to the group of parallel commands. |
|
An AngledWheel is a wheel oriented in a fixed direction, which it can’t change on its own. |
|
Doesn’t drive a motor, only stores its drive parameters and echoes them back for getRealDirection and getRealVelocity. |
|
Adds some utilities for building robot dashboards to |
|
Makes values from a joystick axis go higher if you push them faster. |
|
An extended Joystick specifically designed for Logitech gamepads. |
A robot which runs generators throughout the cycles of autonomous, teleop, and test mode. |
|
|
An action to run in a StateMachine. |
|
Allows an “instance” of an IterativeRobot to be created without connecting to HAL. |
|
An angled Mecanum wheel. |
|
Wraps a SuperHolonomicDrive, and allows |
A signal that can be returned from a generator in a parallel group to trigger an action on the group. |
|
|
Controls a SuperHolonomicDrive to follow paths on the field. |
|
An action to run in a StateMachine. |
Implementation of a Pushdown Automaton. |
|
|
Value to signal that a group of parallel commands should be stopped. |
|
A wheel which can rotate. |
Constants for the Thrustmaster T-Flight Hotas X joystick. |
|
|
Logs parameters for drive(), for testing. |
Monitors the rate of the update loop, to see how closely it matches 50Hz. |
|
|
Interface for wheels. |
|
Returns the shortest arc length between two points on a circle. |
|
Add a dead-zone to the number. |
|
Wait until the iterable yields False for a certain number of consecutive iterations before finishing. |
|
Wait until the iterable yields True for a certain number of consecutive iterations before finishing. |
|
|
Iterate forever. |
|
|
|
|
Construct a REMI HBox with the given keyword arguments, and add all of the given widgets to it. |
|
Run a group of iterables in parallel. |
|
Given a function |
|
|
|
Run an iterable but change the return value. |
|
Run a set of iterables sequentially |
|
|
|
Start the dashboard in a separate thread. |
|
If run in a |
|
Run the iterable until it finishes or the given time limit has passed. |
|
A generator which runs until the joystick button is pressed, then exits. |
|
Run the iterable until it yields True, then stop. |
|
Construct a REMI VBox with the given keyword arguments, and add all of the given widgets to it. |
|
Wait for a certain number of iterations. |
|
A generator which runs while the joystick button is pressed, then exits. |