TR-mbed 1.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
WheelSpeeds Class Reference

#include <ChassisSubsystem.h>

Public Member Functions

void operator*= (double scalar)
 
char * to_string ()
 
 WheelSpeeds (double LF, double RF, double LB, double RB)
 

Public Attributes

double LF
 
double RF
 
double LB
 
double RB
 

Detailed Description

The WheelSpeeds class represents the speeds of the 4 chassis motors. It is used by the Chassis to drive the 4 motors at certain speeds.

Constructor & Destructor Documentation

◆ WheelSpeeds()

WheelSpeeds::WheelSpeeds ( double  LF,
double  RF,
double  LB,
double  RB 
)

Creates a new WheelSpeeds object with the given speeds of each motor

Parameters
LFThe speed of the left front motor in RPM
RFThe speed of the right front motor in RPM
LBThe speed of the left back motor in RPM
RBThe speed of the right back motor in RPM

Member Function Documentation

◆ operator*=()

void WheelSpeeds::operator*= ( double  scalar)
inline

◆ to_string()

char * WheelSpeeds::to_string ( )
inline

Member Data Documentation

◆ LB

double WheelSpeeds::LB

◆ LF

double WheelSpeeds::LF

◆ RB

double WheelSpeeds::RB

◆ RF

double WheelSpeeds::RF

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