mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
[wpimath] Improve accuracy of ComputerVisionUtil.calculateDistanceToTarget() (#4215)
This commit is contained in:
@@ -28,13 +28,15 @@ namespace frc {
|
||||
* Positive values up.
|
||||
* @param targetPitch The pitch of the target in the camera's lens. Positive
|
||||
* values up.
|
||||
* @param targetYaw The yaw of the target in the camera's lens.
|
||||
* @return The estimated distance to the target.
|
||||
*/
|
||||
WPILIB_DLLEXPORT
|
||||
units::meter_t CalculateDistanceToTarget(units::meter_t cameraHeight,
|
||||
units::meter_t targetHeight,
|
||||
units::radian_t cameraPitch,
|
||||
units::radian_t targetPitch);
|
||||
units::radian_t targetPitch,
|
||||
units::radian_t targetYaw);
|
||||
|
||||
/**
|
||||
* Estimate the position of the robot in the field.
|
||||
|
||||
Reference in New Issue
Block a user