Skip to content

Conversation

@denniszollo
Copy link
Contributor

I made quite a few changes to try to get an improved PDF document.

  1. Add to the schema to avoid XXXInputType and all being called real messages according to docs and generated code
  2. rename some linux draft messages so they look better on the PDF (not the best idea, but they were draft anyway!)
  3. allow ctrl-f for MSG_ including underscore character
  4. Fixup table widths to avoid running off of page
  5. Fixup table widths to avoid columns running into eachother.

Copy link
Contributor

@silverjam silverjam left a comment

Choose a reason for hiding this comment

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

It looks like the new public field caused the messages to be excluded from the Python SBP message table, so a unit test failed.

I don't think we should rename the Linux messages, this will cause build failures in dependent libraries piksi_buildroot_private. Instead we can just drop the Linux resource monitor messages (basically everything in linux.yaml) from the docs since the feature was never officially released.

Otherwise, we'll need a companion change for PBRP, see resource_monitor code for an example.

short_desc: Flags for a given GNSS sensor used as input for the fuzed solution.
short_desc: Instruments the physical type of GNSS sensor input to the fuzed solution.
public: true
description_only: true
Copy link
Contributor

Choose a reason for hiding this comment

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

How about embedded_type: true or generate_docs: false?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks so much for the review Jason.

Yes I agree now that renaming linux is bad. I will drop those messages from PDF for now instead.

I like "embedded_type" a lot and will go with that instead. I couldn't think of a good name so went with an obviously bad one hoping a better one would come to me.

The unit tests are wrong since they call a message a message that isn't, so I will update them.

@silverjam
Copy link
Contributor

  1. allow ctrl-f for MSG_ including underscore character

clapping-academy

cc @jaredw42

  * change pdf column widths to avoid text running into itself
  * Reduce width of overrunning table of messages in pdf
  * pdf: change width of last column long table of messages
  * pdf: make underscores searchable at the expense of underscores in line with text
- MSG_LINUX_CPU_STATE:
id: 0x7F00
short_desc: List CPU state on the system
public: false
Copy link
Contributor

Choose a reason for hiding this comment

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

One last tweak... there seems to be some cognitive dissonance between the meaning of "public" at the top level of the module and here on an individual message. For the top level it just puts the message in a different location in the docs, for the message level it removes it from the docs. To resolve this I would suggest we rename this to "hidden" and invert the logic, so public: false would become hidden: true.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that is a good idea, but I think I'd like to do a separate PR that does that all at once if this looks good as is.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, logged a new ticket to track: https://swift-nav.atlassian.net/browse/INFRA-281

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am thinking "publish:" (same logic) or "hide_from_docs:" (opposite logic).

@silverjam silverjam changed the title Dzollo/improve pdf Improve SBP protocol PDF documentation [INFRA-280] Sep 3, 2020
@denniszollo denniszollo merged commit af8109a into master Sep 4, 2020
@denniszollo denniszollo deleted the dzollo/improve_pdf branch September 4, 2020 00:24
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.

3 participants