[hal] Add high level way of getting systemserver NT instance (#7683)

This commit is contained in:
Thad House
2025-01-16 09:49:40 -08:00
committed by GitHub
parent 58cb395d76
commit 1cad4f64a4
16 changed files with 169 additions and 5 deletions

View File

@@ -0,0 +1,15 @@
// 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.
#include "frc/SystemServer.h"
#include <hal/SystemServer.h>
namespace frc {
nt::NetworkTableInstance SystemServer::GetSystemServer() {
return nt::NetworkTableInstance{HAL_GetSystemServerHandle()};
}
} // namespace frc