[wpilib] Add Field widget to BuiltInWidgets in shuffleboard (#3961)

This commit is contained in:
Thad House
2022-01-24 20:33:11 -08:00
committed by GitHub
parent 88f5cb6eb0
commit 77e4e81e1e
3 changed files with 20 additions and 1 deletions

View File

@@ -31,6 +31,7 @@ static constexpr const char* widgetStrings[] = {
"Differential Drivebase",
"Mecanum Drivebase",
"Camera Stream",
"Field",
};
const char* detail::GetStringForWidgetType(BuiltInWidgets type) {

View File

@@ -370,7 +370,16 @@ enum class BuiltInWidgets {
* </td></tr>
* </table>
*/
kCameraStream
kCameraStream,
/**
* Displays a field2d object.<br>
* Supported types:
*
* <ul>
* <li>Field2d
* </ul>
*/
kField,
};
} // namespace frc

View File

@@ -473,6 +473,15 @@ public enum BuiltInWidgets implements WidgetType {
* </table>
*/
kCameraStream("Camera Stream"),
/**
* Displays a field2d object.<br>
* Supported types:
*
* <ul>
* <li>{@link edu.wpi.first.wpilibj.smartdashboard.Field2d}
* </ul>
*/
kField("Field"),
;
private final String m_widgetName;