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

Decodes traction request and reply messages for the monitor window #195

Merged
merged 8 commits into from
Mar 6, 2022

Conversation

balazsracz
Copy link
Collaborator

This PR adds toString() methods to the TractionControlRequest and TractionControlReply messages. These tostring methods are used by the OpenLCB/LCC monitor log in JMRI. The decoding interprets the message command, subcommand and renders the arguments in text form.

Adds unit tests for untested parts of the traction messages, including creators and accessors.
Adds a few missing details from the TractionWM to the traction request/reply classes.

Misc supporting changes:

  • Fixes bugs in the Utilities.NetworkToHostUintXX methods.
  • Adds 24-bit Utilities.NetworkToHostUintXX method.
  • Adds a constructor to NodeID that takes a long argument.
  • Fixes missing rounding in the Float16 constructor (it was truncating to zero instead of rounding).
  • Adds isPositive to Float16 class.

@balazsracz balazsracz requested a review from dpharris February 13, 2022 21:24
@balazsracz balazsracz merged commit 3e2078f into master Mar 6, 2022
@balazsracz balazsracz deleted the bracz-traction-message branch March 6, 2022 09:34
balazsracz added a commit that referenced this pull request Mar 6, 2022
* master:
  Decodes traction request and reply messages for the monitor window (#195)
  Adds keyboard navigation between segments (#192)
  Prevents creating two loadingListeners. (#193)
balazsracz added a commit that referenced this pull request Mar 7, 2022
# By Balazs Racz (3) and dependabot[bot] (1)
# Via GitHub
* 'master' of github.com:openlcb/OpenLCB_Java:
  Decodes traction request and reply messages for the monitor window (#195)
  Adds keyboard navigation between segments (#192)
  Prevents creating two loadingListeners. (#193)
  Bump xercesImpl from 2.12.0 to 2.12.2 (#190)

# Conflicts:
#	src/org/openlcb/cdi/swing/CdiPanel.java
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