Skip to content

[link] improve datalink/telemetry report #999

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 3, 2014
Merged

[link] improve datalink/telemetry report #999

merged 4 commits into from
Dec 3, 2014

Conversation

gautierhattenberger
Copy link
Member

  • more reported data about up/down-link
  • cleanup report messages
  • display link page in GCS even in single link mode

Tested in simulation, will be on real hardware soon.
Test with redundant link would be welcome since I don't have working setup for this.

- more reported data about up/down-link
- cleanup report messages
- display link page in GCS even in single link mode
// timestamp in usec when last message was send
static float last_ts = 0.;
// current timestamp
uint32_t now_ts = get_sys_time_float();
Copy link
Member

Choose a reason for hiding this comment

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

This should be a float...
Or use get_sys_time_usec() which has higher resolution (get_sys_time_float() has only sys_time.resolution)...

@flixr
Copy link
Member

flixr commented Dec 1, 2014

Somehow ping_time is not updated/computed correctly anymore..

@flixr
Copy link
Member

flixr commented Dec 1, 2014

Seems to work fine with single link connected to LisaMX...

@flixr flixr added this to the v5.4 milestone Dec 3, 2014
@flixr
Copy link
Member

flixr commented Dec 3, 2014

@uaarg any chance you can confirm this still works with multiple links?

flixr added a commit that referenced this pull request Dec 3, 2014
[link] improve datalink/telemetry report

- more reported data about up/down-link
- cleanup report messages
- display link page in GCS even in single link mode

closes #442
@flixr flixr merged commit 863e1d4 into master Dec 3, 2014
@flixr flixr deleted the link_report branch December 3, 2014 19:15
@podhrmic
Copy link
Member

IMHO it would be good to keep TELEMETRY_STATUS message in default telemetry settings, so you can see ping times as before.

@gautierhattenberger
Copy link
Member Author

It was a very unpleasant hack (at least to me...) to have it in telemetry class in the first place. With this code, each message is declared and used by the class it belongs to. The message LINK_REPORT is also logged, and it contains the ping time. It is just less convenient to display because log plotter doesn't support this message class.
This can be future work, but I don't have the time to do it right now.
See also #1031 about ping monitoring.

@camlee
Copy link

camlee commented Feb 24, 2015

@flixr : UAARG member here. I know this is quite late, but I'll try and test these changes with multiple links soon (thinking 1-2 months). I skimmed your code changes and they look good to me so far. Definitely nice to see improvement in this area such as the link page showing data even when redundant links are not used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants