[fieldImages] Add 2023 field (#4915)

This commit is contained in:
sciencewhiz
2023-01-08 16:28:25 -08:00
committed by GitHub
parent 0d105ab771
commit 51272ef6b3
4 changed files with 25 additions and 2 deletions

View File

@@ -14,12 +14,13 @@ public enum Fields {
k2021GalacticSearchA("2021-galacticsearcha.json"),
k2021GalacticSearchB("2021-galacticsearchb.json"),
k2021Slalom("2021-slalompath.json"),
k2022RapidReact("2022-rapidreact.json");
k2022RapidReact("2022-rapidreact.json"),
k2023ChargedUp("2023-chargedup.json");
public static final String kBaseResourceDir = "/edu/wpi/first/fields/";
/** Alias to the current game. */
public static final Fields kDefaultField = k2022RapidReact;
public static final Fields kDefaultField = k2023ChargedUp;
public final String m_resourceFile;

View File

@@ -0,0 +1,12 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#pragma once
#include <string_view>
namespace fields {
std::string_view GetResource_2023_chargedup_json();
std::string_view GetResource_2023_field_png();
} // namespace fields

View File

@@ -0,0 +1,10 @@
{
"game": "Charged Up",
"field-image": "2023-field.png",
"field-corners": {
"top-left": [46, 36],
"bottom-right": [1088, 544]
},
"field-size": [54.27083, 26.2916],
"field-unit": "foot"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB