|
Fang-Robotics-MCB
Fang Robotics Team Codebase
|
#include <chassis_input_handler.hpp>
Classes | |
| struct | Config |
| struct | KeyboardConfig |
| struct | RemoteConfig |
Public Member Functions | |
| ChassisInputHandler (Remote &remote, const Config &config) | |
| math::AbstractVector2D | getTranslation () const |
| double | getRotation () const |
| math::AbstractVector2D | getRemoteTranslation () const |
| math::AbstractVector2D | getKeyboardTranslation () const |
| double | getRemoteRotation () const |
| math::AbstractVector2D fang::chassis::ChassisInputHandler::getKeyboardTranslation | ( | ) | const |
Returns the key pressed. if multiple are pressed, the priority is forward, backward, left right.
| double fang::chassis::ChassisInputHandler::getRemoteRotation | ( | ) | const |
How fast either the chassis or the turret should be rotated
| math::AbstractVector2D fang::chassis::ChassisInputHandler::getRemoteTranslation | ( | ) | const |
Returns the desired translation motion Depending on which mode is used, this could be relative to the robot chassis, the field, or fang-mcb-project/src/wrap/rail/chassis/iholonomic_control.hpp
| double fang::chassis::ChassisInputHandler::getRotation | ( | ) | const |
Returns a clamped sum of the keyboard and mouse inputs
| math::AbstractVector2D fang::chassis::ChassisInputHandler::getTranslation | ( | ) | const |
Returns a clamped sum of the keyboard and mouse inputs