Skip to content
This repository has been archived by the owner on Nov 27, 2020. It is now read-only.

Latest commit

 

History

History
73 lines (52 loc) · 5.57 KB

operation.md

File metadata and controls

73 lines (52 loc) · 5.57 KB

Darth Raider Operation Manual

This document outlines how to operate 5024's 2020 season robot, and some notes about operation. Controls are split across two Xbox controllers, the "driver controller" and the "operator controller"

Operator Dashboard

Operator Dashboard

This dashboard is displayed to the robot operators on the controller laptop. The image above contains:

  • Main robot vided feed
    • This automatically focuses on the most important camera based on the robot's current action
  • Robot voltage display
  • Internal ball counter
  • Autonomous mode selection menu
  • (not shown) Climber video feed

Driving

Darth Raider's drivebase is controlled via the "trigger-drive" scheme developed by @slownie and @johnlownie in 2018. This scheme uses the following inputs on the driver controller:

Input Output
Right trigger Forward force
Left trigger Backwards force
Left joystick Turning force
X button (toggle) Flip trigger actions (inverts movement)
Y button (hold) Free-space auto-aim
Left or Right bumper (hold) Slow mode

The Y abd B buttons are an additional feature built specifically for this bot.

Free-space auto-aim will completely take over the driver's control of the robot, and use a mix of vision tracking and odometry to drive the bot to an optimal scoring location on the field. This is useful for scoring power cells from anywhere in front of the opponent's sector.

Pivot auto-aim will take over the driver's control of the robot, and use the robot's cameras to find, and turn to the nearest outer goal. This should be used to sore from areas like the trench, where we have the required power to make a shot, but are outside the optimal scoring zone used by the free-space aim.

Interacting with the superstructure

(Robot Name)'s superstructure contains all mechanisms related to the scoring of power cells. None of these systems can be directly interacted with by the robot operators, as they are all inter-coordinated by software. This software also contains safety-stops for components like the arms that have the ability to break themselves if not correctly controlled. The following high-level controls are exposed to the operator controller:

Input Output
Right bumper (toggle) Intake power cells
Right trigger (hold) Shoot power cells
B button (toggle) Un-jam system
Left trigger (hold) Un-jam system upwards
X button + Right D-pad Reset internal ball counter
Y button (one-shot) Re-align balls in hopper
D-pad up (tap) Manually add cell count
D-pad down (tap) Manually subtract cell count

Both the intake and shoot actions are heavily controlled by software, and the buttons inputs are only suggestions to the internal component management software. These systems will only run if the robot decides it is safe to do so. The intake will auto-finish once the robot fills its hopper, and the shooter will only run if there are balls available in the hopper to shoot, and the robot is properly aimed.

In the rare chance something goes wrong, the robot provides an unjam and a reset control. Unjamming will cause the robot to exhaust all stored balls back through the intake. This should be used if balls manage to bind inside the system, or we need to feed balls to another robot. Once all balls have been un-jammed, the reset action can be run to reset the robot's internal ball counter. Occasionally the robot will think it has an extra power cell (this is caused by failing to intake a ball). Pressing the reset button will cause the robot to reset it's counter. The internal ball count is displayed on the top right corner of the operator dashboard.

Climb

The climber is a "one and done" mechanism that requires 2-factor authentication to enable. To enable the climber, the driver must hold the "back" button, and tap "start". To safety-stop climb, just tap "start" again. The climb controls are as follows:

Input Output
Right joystick up (hold) Pull climber down to "level" position
Right joystick down (hold) Pull climber all the way down, and climb

Upon robot disable, the PCM will auto-clear all faults generated by the climb hardware. If the robot is not disabled, or climb is not reset between attempts to deploy the pin, the PCM will ignore all requests, and stop climb from running. If the pin is unable to retract, tap "start" to cancel climb, then try re-starting the climb process.

Control Panel

The Control Panel can be controlled with two buttons on the operator controller. To use these buttons, the robot must be in contact with the control panel. This is determined by the color sensor mounted on the manipulator.

Input Output
Left joystick button Rotate panel for ~3 rotations
A button (pulse) Rotate panel for ~1 color

Using a combination of these buttons, the panel can both be rotated and positioned.