iltis42/XCVario

MC unit handling on interface to XCSoar

Closed this issue · 10 comments

hjr commented

Describe the bug
XCV and connected XCS exchange MC values. From XCS to XCV does not handle units correctly when set to something else than m/s on XCV side.
E.g. XCS sends MC 1 m/s XCV receives 200feet/min, or 1,9knots when set to knots as unit.

To Reproduce
XCS on e.g. Laptop connected to S2. Setup XCV interface on XCS and change MC manually.

Expected behavior
Show the adjusted same value, or proper converted value on XCV side.

Desktop (please complete the following information):
Linux laptop, XCS compiled from head, XCV compiled from head.

Fix keeping standard format in hPa and inHg only for display comes here:
769eb98

hjr commented

Please reopen. The fix is not related to the issue and does not fix it.

For testing:
508311d

In my gadgets i don't see issue with above change , can this be closed ?

hjr commented

Will double check. one moment.

hjr commented

Ok, now the setting seems to be right, but just the display indicates m/s always. Will fix too.

hjr commented

Contributed with PR #82 a bit to it but this is not yet completely fixed. Choosing r.g. 100ft/min as vario unit still shows on the config setting where you change the MC value a m/s figure, but x 100ft/min right behind it. This need to be a fit to the figure as well.

Sure the MC setup screen needed the unit from vario for Units:: as well. Will crosscheck this also.

Apparently the new blackboard approach fixes this.

hjr commented

Yip, please close. #86 was dedicated to this issue. The specific class Vario can display vertical speeds in configured units.