Skip to content
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

dronecan 1140.RCInput: add flags to represent LQ and SNR link statistics #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

olliw42
Copy link
Contributor

@olliw42 olliw42 commented Oct 8, 2024

Adds two flags to allow representing LQ and SNR link stats.
As suggested in ArduPilot/ardupilot#28295.
Adds a possible mapping from RSSI vlaues onto the scaled values. It is motivated by https://github.com/ArduPilot/ardupilot/blob/master/libraries/AP_RCProtocol/AP_RCProtocol_CRSF.cpp#L602-L610 (with slight adaption).

Also adds a note on the rc channels mid value to clarify the representation of the rc channels values.

@olliw42
Copy link
Contributor Author

olliw42 commented Oct 10, 2024

EDIT: I "discovered" that ArduPilot's OSD wants rssi in dBm and not rssi in 0..255, and I couldn't determine a backwards compatible method of using rssi. So added RSSI_DBM option.

dronecan/sensors/rc/1140.RCInput.uavcan Outdated Show resolved Hide resolved
dronecan/sensors/rc/1140.RCInput.uavcan Outdated Show resolved Hide resolved
@olliw42
Copy link
Contributor Author

olliw42 commented Oct 13, 2024

question:

would it be acceptable to carry TWO data in one transmission of the quality field?

the specific use case would be to carry both LQ and the active_antenna in quality. LQ is from 0..100, so the 8th bit is not used, and could be used to carry the bit required for active_antenna.
this would be benefitial, since the data has to be send round robin, so one slot less would be needed just for that single bit.
?

@olliw42 olliw42 force-pushed the owpr-rcinput-linkstats branch from dcdaeae to ab11812 Compare October 15, 2024 16:45
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