2024-Robot
Robot code for 2024 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
argos_lib::odometry_aim Namespace Reference

Functions

units::degree_t GetAngleToTarget (const frc::Translation2d &currentEstimatedRobotPose, const frc::Translation3d &targetPoseOnField)
 Gets the Angle(Yaw) required for the Robot to orient towards the target of interest assuming the robot is field-centric.
 
units::meter_t GetDistanceToTarget (const frc::Translation2d &currentEstimatedRobotPose, const frc::Translation3d &targetPoseOnField)
 Gets the Distance of the Robot to from the target of interest.
 

Function Documentation

◆ GetAngleToTarget()

units::degree_t argos_lib::odometry_aim::GetAngleToTarget ( const frc::Translation2d &  currentEstimatedRobotPose,
const frc::Translation3d &  targetPoseOnField 
)

Gets the Angle(Yaw) required for the Robot to orient towards the target of interest assuming the robot is field-centric.

Parameters
currentEstimatedRobotPoseFused pose of the robot currently on the field
targetPoseOnFieldDefines desired alias range
Returns
Angle(Yaw) of robot in degrees

◆ GetDistanceToTarget()

units::meter_t argos_lib::odometry_aim::GetDistanceToTarget ( const frc::Translation2d &  currentEstimatedRobotPose,
const frc::Translation3d &  targetPoseOnField 
)

Gets the Distance of the Robot to from the target of interest.

Parameters
currentEstimatedRobotPoseFused pose of the robot currently on the field
targetPoseOnFieldDefines desired alias range
Returns
Distance in inches of robot from the target of interest