Skip to content

Debug overhaul#38

Draft
Michael-Foley wants to merge 10 commits into
mainfrom
Debug-Overhaul
Draft

Debug overhaul#38
Michael-Foley wants to merge 10 commits into
mainfrom
Debug-Overhaul

Conversation

@Michael-Foley
Copy link
Copy Markdown
Contributor

A better telemetry system is needed so I added sub tables to each item so that it is easier to find in shuffleboard. Some redundant names were removed because which motor would be known based on the sub table it is in. Debug switches were added to each subsystem. The global debug flag was removed from the robotHAL file. Each motor controller now has its own debug flag.

Michael-Foley added 2 commits February 14, 2025 15:51
…inding values easier in telemetry; got rid of redundant names inside of some sub tables
davidorser
davidorser previously approved these changes Feb 16, 2025
Copy link
Copy Markdown
Contributor

@davidorser davidorser left a comment

Choose a reason for hiding this comment

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

The architecture looks pretty good. I'm tempted to try to use an enforced hierarchy for names of the table values. (e.g., RobotSubSystemName/Arm-PosCMD). The sub-table looks like a great place to put it. Though this may have some unforeseen drawbacks.

Besides that, things look good but there are a lot of changes here, so I'm sure I didn't really think through everything. We definitely need to be careful when deploying this and look for bugs.

Comment thread src/elevator.py
self.table = (
NetworkTableInstance.getDefault()
.getTable("telemetry")
.getSubTable("Elevator Subsystem")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What do you think about replacing "Elevator Subsystem" with self.__class__.__name__ ?? If we have multiple objects of the same type it would get messy. I'm not sure I'm sold on this...

@Michael-Foley Michael-Foley marked this pull request as draft March 14, 2025 16:57
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.

2 participants