|
Fang-Robotics-MCB
Fang Robotics Team Codebase
|
#include <shuriken_command.hpp>


Classes | |
| struct | Config |
Public Types | |
| using | MotionConfig = CounterStrikeCommand::Config |
Public Types inherited from fang::chassis::CounterStrikeCommand | |
| using | Config = FieldDriftCommand::Config |
Protected Member Functions | |
| RPM | getFieldRotation (const physics::Velocity2D &targetFieldTranslation) const |
Protected Member Functions inherited from fang::chassis::CounterStrikeCommand | |
| physics::Velocity2D | getFieldTranslation () const |
| RPM | getFieldRotation () const |
Protected Member Functions inherited from fang::chassis::FieldDriftCommand | |
| physics::Velocity2D | getFieldTranslation () const |
| RPM | getFieldRotation () const |
Additional Inherited Members | |
Protected Attributes inherited from fang::chassis::CounterStrikeCommand | |
| const turret::FieldGimbalSubsystem & | gimbal_ |
| const Config | kConfig_ |
Protected Attributes inherited from fang::chassis::FieldDriftCommand | |
| HolonomicSubsystem & | holonomicSubsystem_ |
| ChassisInputHandler & | chassisInput_ |
| const Config | kConfig_ |
Protected Attributes inherited from tap::control::Command | |
| command_scheduler_bitmap_t | commandRequirementsBitwise = 0 |
Static Protected Attributes inherited from fang::chassis::CounterStrikeCommand | |
| static constexpr const char * | kName {"Counter Strike Global!"} |
Static Protected Attributes inherited from fang::chassis::FieldDriftCommand | |
| static constexpr const char * | kName {"Field Drift"} |
The holonomic drive will automatically spin
| fang::chassis::ShurikenCommand::ShurikenCommand | ( | HolonomicSubsystem & | chassisSubsystem, |
| const turret::FieldGimbalSubsystem & | gimbal, | ||
| ChassisInputHandler & | input, | ||
| const Config & | config | ||
| ) |
This takes a chassis subsystem and the respective inputHandler
|
virtualdefault |
|
overridevirtual |
The main body of a command. Called repeatedly while the command is scheduled by a CommandScheduler.
Reimplemented from fang::chassis::CounterStrikeCommand.
Reimplemented in fang::chassis::TardisCommand.
|
protected |
Translates the rotation input on the remote into a rotation where counterclockwise is positive
It also downscales the angular velocity inversly proportional to the targetFieldTranslation
Reimplemented from fang::chassis::CounterStrikeCommand.
Reimplemented in fang::chassis::TardisCommand.