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

[sim] Various WebSockets fixes/enhancements #2952

Merged
merged 12 commits into from
Dec 23, 2020

Conversation

PeterJohnson
Copy link
Member

@PeterJohnson PeterJohnson commented Dec 22, 2020

  • Update to match WebSockets spec
  • Add support for builtin accelerometer
  • SimValue: change "readonly" to "direction" to allow specifying bidirectional values ("<>" prefix in WS)
  • Map SimDevice "Accel:Name" to WS type "Accel" deviceId "Name"
  • Map SimValue enums to strings/double values on WS interface
  • Copy Google doc to Markdown file in repo
  • Other cleanups
  • Add unit tests

This allows specifying bidirectional in addition to input and output.

This change is specifically designed to avoid API and ABI breakage.  This
is completely transparent in C++; in Java a new callback class was added,
and the old readonly functions have been marked deprecated.
@PeterJohnson PeterJohnson requested review from a team as code owners December 22, 2020 20:05
@PeterJohnson PeterJohnson merged commit 10b396b into wpilibsuite:master Dec 23, 2020
@PeterJohnson PeterJohnson deleted the ws-fixes branch December 23, 2020 23:54
PeterJohnson added a commit to PeterJohnson/allwpilib that referenced this pull request Dec 24, 2020
These were broken by wpilibsuite#2952.

Also fix Java ADXRS450_Gyro angle/rate SimValue names.
PeterJohnson added a commit that referenced this pull request Dec 24, 2020
These were broken by #2952.

Also fix Java ADXRS450_Gyro angle/rate SimValue names.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant