oresat / CANopen-monitor

An NCurses-based TUI application for tracking activity over the CAN bus and decoding messages with provided EDS/OD files.
https://canopen-monitor.readthedocs.io/
GNU General Public License v3.0
25 stars 6 forks source link

Group PDOs by Node ID #82

Open andrewgreenberg opened 2 years ago

andrewgreenberg commented 2 years ago

Reading PDOs in the Misc. window is really hard with multiple Node IDs because the PDOs are sorted by address and thus are interleaved. Can we sort on Node ID and THEN PDO COB ID?

dmitri-mcguckin commented 2 years ago

Is just different column-sorts what you're getting at?

Just making sure I understand, cause group by means something different from sort by, and my head is forever stuck in SQL when it comes to selecting data.

dmitri-mcguckin commented 2 years ago

Customizable sorts have been on the docket for a while but was pending on upgraded UI tools (tpane).

What I was imagining is that, much like htop, you can click on any column header and it will toggle the table sort for that row, (it also can toggle through ascending and descending mode with multiple clicks and an arrow icon) .

Another additional feature I was thinking of was an "Advanced Sort" mode, so on top of the previous feature, the user would hit a button and be prompted to enter an SQL query, so you can essentially do realtime custom queries on your message tables if single-sorting isn't enough.

Would that be something you'd use?