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

#include <RamseteController.h>

Public Member Functions

 RamseteController ()
 
ChassisSpeeds calculate (Pose2D currentPose, Pose2D desiredPose, double desiredLinearVelocity, double desiredAngularVelocity)
 

Detailed Description

The RamseteController class is used to implement the Ramsete control algorithm for path following, used by the Chassis to autonomously follow a certain path.

Constructor & Destructor Documentation

◆ RamseteController()

RamseteController::RamseteController ( )

Creates a new RamseteController with the default control parameters

Member Function Documentation

◆ calculate()

ChassisSpeeds RamseteController::calculate ( Pose2D  currentPose,
Pose2D  desiredPose,
double  desiredLinearVelocity,
double  desiredAngularVelocity 
)

Calculates the optimal speeds to move the Chassis from its current position to a new position and acheive a certain velocity.

Parameters
currentPoseThe Chassis's current position
desiredPoseThe desired position to move the Chassis to
desiredLinearVelocityThe desired linear velocity of the Chassis, in RPM
desiredAngularVelocityThe desired angular velocity of the Chassis, in radians per second
Returns

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