mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-02 02:51:42 +00:00
[apriltag] Deprecate loadAprilTagLayoutField() (#6550)
This commit is contained in:
@@ -35,7 +35,9 @@ public enum AprilTagFields {
|
|||||||
*
|
*
|
||||||
* @return AprilTagFieldLayout of the field
|
* @return AprilTagFieldLayout of the field
|
||||||
* @throws UncheckedIOException If the layout does not exist
|
* @throws UncheckedIOException If the layout does not exist
|
||||||
|
* @deprecated Use {@link AprilTagFieldLayout#loadField(AprilTagFields)} instead.
|
||||||
*/
|
*/
|
||||||
|
@Deprecated(forRemoval = true, since = "2025")
|
||||||
public AprilTagFieldLayout loadAprilTagLayoutField() {
|
public AprilTagFieldLayout loadAprilTagLayoutField() {
|
||||||
return AprilTagFieldLayout.loadField(this);
|
return AprilTagFieldLayout.loadField(this);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -166,7 +166,9 @@ void from_json(const wpi::json& json, AprilTagFieldLayout& layout);
|
|||||||
*
|
*
|
||||||
* @param field The predefined field
|
* @param field The predefined field
|
||||||
* @return AprilTagFieldLayout of the field
|
* @return AprilTagFieldLayout of the field
|
||||||
|
* @deprecated Use AprilTagFieldLayout::LoadField() instead
|
||||||
*/
|
*/
|
||||||
|
[[deprecated("Use AprilTagFieldLayout::LoadField() instead")]]
|
||||||
WPILIB_DLLEXPORT AprilTagFieldLayout
|
WPILIB_DLLEXPORT AprilTagFieldLayout
|
||||||
LoadAprilTagLayoutField(AprilTagField field);
|
LoadAprilTagLayoutField(AprilTagField field);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user