Skip to content

Construct and peridocially send network config - #50

Merged
lixfel merged 1 commit into
masterfrom
send-config
Nov 8, 2026
Merged

lixfel merged 1 commit into
masterfrom
send-config

Conversation

@lixfel

@lixfel lixfel commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@lixfel
lixfel requested a review from guyfleeman November 7, 2026 19:53
@lixfel lixfel self-assigned this Nov 7, 2026

@guyfleeman guyfleeman left a comment

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.

One thing we might want right now:

  • This pulls camera.path but cameradriver.cpp pulls camera.device now.

I'm approving because I think most of my concerns are coming in the future but:

  • This seems to be not reconstructed when the config file updates, so it can go stale. But we are dropping most of the config file in the future anyway.
  • This doesn't announce anything until the first readImage() is done. This means it can block, inhibiting debug.
  • Hostname as written is ambiguous if two instances are running on the same host
  • We originally omitted some advanced configs from the packet, but the GUI supports them now and I've had to tweak a few in noisy environments like my home lab. Again, probably future work.

Comment thread src/main.cpp
}

/* Send config once per second. */
if((realStartTime - lastConfigSendTime) > 1.0) {

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.

Probably Future Work: 1Hz is a bit slow for responsive UI. I think we previously discussed also sending once out of cycle when a update arrives.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

That's adjustable for sure, I just wanted to start with a conservative value.

guyfleeman added a commit that referenced this pull request Nov 7, 2026
@lixfel

lixfel commented Nov 8, 2026

Copy link
Copy Markdown
Collaborator Author

This is just the baseline to be able to start porting over from Resources to config, during that I'll intend to implement dynamic config adjustments as well.

@lixfel
lixfel merged commit 5a13396 into master Nov 8, 2026
3 checks passed
@lixfel
lixfel deleted the send-config branch November 8, 2026 08:42
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