[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

@@ -27,7 +27,7 @@
#include <wpi/timestamp.h>
#include "HALInitializer.h"
#include "SystemServer.h"
#include "SystemServerInternal.h"
#include "hal/DriverStation.h"
#include "hal/Errors.h"
#include "hal/proto/ControlData.h"

View File

@@ -27,7 +27,7 @@
#include "CANInternal.h"
#include "HALInitializer.h"
#include "HALInternal.h"
#include "SystemServer.h"
#include "SystemServerInternal.h"
#include "hal/DriverStation.h"
#include "hal/Errors.h"
#include "hal/Notifier.h"

View File

@@ -7,7 +7,7 @@
#include <atomic>
#include "HALInitializer.h"
#include "SystemServer.h"
#include "SystemServerInternal.h"
namespace hal {

View File

@@ -2,8 +2,9 @@
// 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 "SystemServer.h"
#include "hal/SystemServer.h"
#include "SystemServerInternal.h"
#include "mrc/NtNetComm.h"
namespace hal {
@@ -33,3 +34,10 @@ nt::NetworkTableInstance GetSystemServer() {
}
} // namespace hal
extern "C" {
NT_Inst HAL_GetSystemServerHandle(void) {
return hal::ServerInstance.GetHandle();
}
} // extern "C"