Skip to content

UI and Internal changes - now works on 'M' macOS and lets user select baud rate etc. #22

Open
IanBUK wants to merge 71 commits intoPaulStoffregen:masterfrom
IanBUK:master
Open

UI and Internal changes - now works on 'M' macOS and lets user select baud rate etc. #22
IanBUK wants to merge 71 commits intoPaulStoffregen:masterfrom
IanBUK:master

Conversation

@IanBUK
Copy link

@IanBUK IanBUK commented Jun 1, 2025

I've added:

Option to set the baud rate.
Option to specify the line ending.
Pause button.
'Received Data' panel, which shows: a. The floats from the 'Raw:' messages. b. 'Orientation' data received from an 'Ori:' message, which has three floats containing yaw, roll, pitch.
Messages panel, used to churn out messages. 'Gaps' data is shown when it has changed from the last data update.
Internal changes

logging.c

The code now builds a log as it's going: log.txt. To add new lines to the log, use the logMessage function. debugPrint can be used for listing out the content of a const unsigned char * to log.txt. logTerminalSettings logs some members of an termios instance.

serialdata.c

I've split serialdata.c into serialdata.c, serialdata.messaging.c and serialdata.parsing.c - as I added new callback routes I found the class was getting too large for my brain.

I've updated the reading of new lines from the serial port - it kept failing as is. This might be to macOS changes - I've no reason to think the code itself was wrong.

gui.cpp

I've split the UI building code out into separate function. When adding the panels, the existing function grew to a few hundred lines.

Callbacks

When new Raw, Cal1, Cal2 or Ori messages are read from the console, they're now sent back to gui.cpp using callbacks.

Need way of setting max/actual height for panel.
Can see what the raw data is and that the line endings aren't being respected.
Add Baud rate setter to UI.
read from port doesn't yet use line endings setting.
doesn't quite work yet.
@IanBUK IanBUK marked this pull request as draft June 14, 2025 14:05
@IanBUK IanBUK marked this pull request as ready for review June 14, 2025 14:32
@IanBUK
Copy link
Author

IanBUK commented Jul 30, 2025

Hi! Just checking in to see if there's anything I can do to help move this PR forward. Happy to adjust anything as needed.

@IanBUK
Copy link
Author

IanBUK commented Oct 1, 2025

@PaulStoffregen - is there anything I can do to help move this PR forward? Would squashing the merge down to a single commit make it easier for you to reject/approve?

@IanBUK
Copy link
Author

IanBUK commented Dec 22, 2025

@PaulStoffregen - I'm guessing this repo is abandoned?

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