Class ChassisInputHandler

Nested Relationships

Nested Types

Class Documentation

class ChassisInputHandler

Public Functions

ChassisInputHandler(Remote &remote, const Config &config)
math::AbstractVector2D getTranslation() const

Returns a clamped sum of the keyboard and mouse inputs

double getRotation() const

Returns a clamped sum of the keyboard and mouse inputs

math::AbstractVector2D 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

math::AbstractVector2D getKeyboardTranslation() const

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

double getRemoteRotation() const

How fast either the chassis or the turret should be rotated

struct Config

Public Members

RemoteConfig remoteConfig
KeyboardConfig keyboardConfig
struct KeyboardConfig

Public Members

Remote::Key forwardKey
Remote::Key backwardKey
Remote::Key leftKey
Remote::Key rightKey
struct RemoteConfig

Public Members

Remote::Channel xTranslationChannel
Remote::Channel yTranslationChannel
Remote::Channel rotationChannel