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

fix(cpn): Align telemetry sensor subid with radios #2698

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

elecpower
Copy link
Collaborator

Fixes #2678 #2342
Partially fixes #2665

Summary of changes:

  • do not offset subid/instance +1/-1 on settings read/write respectively

@elecpower elecpower added bug 🪲 Something isn't working companion Related to the companion software labels Nov 8, 2022
@ParkerEde
Copy link
Contributor

ParkerEde commented Nov 17, 2022

I have tested this PR. Now Companion is ok. But the telemetry simulator still uses the SubID+1 offset.
image

@elecpower
Copy link
Collaborator Author

However it would appear to me this change is inconsistent with b&w radios eg X9D+ OR is there something else at play eg old/converted vs rediscovered sensors?

telemetrySensors:
0:
id1:
id: 2896
id2:
instance: 240
label: "EscV"
subId: 0
type: TYPE_CUSTOM

Screenshot from 2022-11-18 07-49-56
screenshot_x9d+_22-11-18_07-46-59
screenshot_tx16s_22-11-18_08-00-50screenshot_tx16s_22-11-18_07-47-50

@ParkerEde
Copy link
Contributor

Companion adds +1 to the instance ID. Here a further discussion about it.
#2678 (comment)

@elecpower elecpower marked this pull request as draft April 10, 2023 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working companion Related to the companion software
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Difference at Telemetry ratio/instance between radio and companion Telemetry Sensor SubID shows wrong ID
3 participants