Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
fang::chassis::ChassisInputHandler Class Reference

#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
 

Constructor & Destructor Documentation

◆ ChassisInputHandler()

fang::chassis::ChassisInputHandler::ChassisInputHandler ( Remote remote,
const Config config 
)

Member Function Documentation

◆ getKeyboardTranslation()

math::AbstractVector2D fang::chassis::ChassisInputHandler::getKeyboardTranslation ( ) const

Returns the key pressed. if multiple are pressed, the priority is forward, backward, left right.

◆ getRemoteRotation()

double fang::chassis::ChassisInputHandler::getRemoteRotation ( ) const

How fast either the chassis or the turret should be rotated

◆ getRemoteTranslation()

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

◆ getRotation()

double fang::chassis::ChassisInputHandler::getRotation ( ) const

Returns a clamped sum of the keyboard and mouse inputs

◆ getTranslation()

math::AbstractVector2D fang::chassis::ChassisInputHandler::getTranslation ( ) const

Returns a clamped sum of the keyboard and mouse inputs


The documentation for this class was generated from the following files: