Skip to content

sat: add debug and warning logs for transmission and ephemeris#195

Merged
ceolin merged 2 commits into
HubbleNetwork:mainfrom
ceolin:sat/logs
May 8, 2026
Merged

sat: add debug and warning logs for transmission and ephemeris#195
ceolin merged 2 commits into
HubbleNetwork:mainfrom
ceolin:sat/logs

Conversation

@ceolin
Copy link
Copy Markdown
Collaborator

@ceolin ceolin commented May 7, 2026

Add useful debug / warning messages around satellite common code.

ceolin added 2 commits May 7, 2026 15:00
Add debug logs to track the time-since-sync interval, additional
retries computed from TDR, and the final retry count/interval used
when sending packets. Add warning logs on DTM packet get and
transmission failures so errors are visible in the log output

Signed-off-by: Flavio Ceolin <flavio@hubble.com>
Instrument hubble_sat_ephemeris.c with HUBBLE_LOG_DEBUG/WARNING calls to
trace configuration, search inputs, results, and error paths.

Signed-off-by: Flavio Ceolin <flavio@hubble.com>
Copy link
Copy Markdown
Collaborator

@HongNguyen635 HongNguyen635 left a comment

Choose a reason for hiding this comment

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

A minor comment but looks good to me.

lon_tol = _lon_tolerance_get(pos->lat, alt);
int ret = _pass_get(&_satellites[i], t, pos, lon_tol, &next_pass);

if (ret == 0) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

would it be helpful if we can log which sat it succesfully computed for?

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.

There is a following log for success, and a valid pass here is not necessarily the returned value so it can be misleading. The sat id info should be only for the returned pass

@ceolin ceolin merged commit 234c390 into HubbleNetwork:main May 8, 2026
8 checks passed
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.

3 participants