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

Change "key - value" in PDO listings to "key:value" #81

Open andrewgreenberg opened 2 years ago

andrewgreenberg commented 2 years ago

Right now, a PDO looks like:

Battery Vbatt - 7667 Battery VCell max - 3840 Battery VCell min - 3820 Battery VCell - 3827

Is there a way to change to:

Battery: Vbat:7667 / Vcell max:3840 / Vcell min:3820 / Vcell:3827

The dashes are driving me insane, and we don't want the repeated batteries, and it's nice to

dmitri-mcguckin commented 2 years ago

CANOpen Monitor displays those messages in a raw format.

When I say "raw", what I mean is CANOpen Monitor assembles the message strictly according to how EDS or DCF files instruct it to, so the exact organization of the characters is actually a configuration of said files.

andrewgreenberg commented 2 years ago

Great. Assemble the string. Replace " - " with ":" (note the spaces). Look up the Node ID string somewhere, and remove any repeat of that string.