Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add high level way of getting systemserver nt instance #7683

Merged
merged 11 commits into from
Jan 16, 2025

Conversation

ThadHouse
Copy link
Member

That way its accessible from user programs without creating another instance.

@ThadHouse ThadHouse requested review from a team as code owners January 14, 2025 07:06
@github-actions github-actions bot added component: ntcore NetworkTables library component: wpilibj WPILib Java component: wpilibc WPILib C++ component: hal Hardware Abstraction Layer 2027 2027 target labels Jan 14, 2025
PeterJohnson
PeterJohnson previously approved these changes Jan 14, 2025
extern "C" {

NT_Inst HAL_GetSystemServerHandle(void) {
return 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually an interesting future conversation... but yes, makes sense for now.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we do need to have that conversation at some point. But for now we just need something working slightly better.

The main reason I'm adding this is I'm probably going to put the IMU code at the high level, purely because I don't want to make the HAL depend on wpimath, and the IMU gives values in a Quaternion.

PeterJohnson
PeterJohnson previously approved these changes Jan 15, 2025
@PeterJohnson PeterJohnson merged commit 1cad4f6 into wpilibsuite:2027 Jan 16, 2025
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2027 2027 target component: hal Hardware Abstraction Layer component: ntcore NetworkTables library component: wpilibc WPILib C++ component: wpilibj WPILib Java
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants