View Issue Details

IDProjectCategoryView StatusLast Update
0000087Falcon BMS Known BugsGeneralpublic2021-03-04 18:17
ReporterFish Assigned ToBlu3wolf  
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionno change required 
PlatformPCOSWindowsOS VersionWindows 10
Summary0000087: SimHsiHeading and SimHsiCourse callbacks not functioning as described
DescriptionThe following callbacks change the settings by only 1° instead of 5°

SimHsiCourseInc -1 0 0XFFFFFFFF 0 0 0 1 "MAIN: HSI CRS Knob - Increase (5°)"
SimHsiCourseDec -1 0 0XFFFFFFFF 0 0 0 1 "MAIN: HSI CRS Knob - Decrease (5°)"
SimHsiHeadingInc -1 0 0XFFFFFFFF 0 0 0 1 "MAIN: HSI HDG Knob - Increase (5°)"
SimHsiHeadingDec -1 0 0XFFFFFFFF 0 0 0 1 "MAIN: HSI HDG Knob - Decrease (5°)"
Steps To ReproduceMap each to a keyboard or DX command.
TagsNo tags attached.
Theatre of Operations

Relationships

related to 0000105 new Documentation [Docs] update docs for g_nKnobAccelerationDelta to remove references to the "By5" callbacks 
has duplicate 0000103 closedBlu3wolf Falcon BMS Known Bugs SimHsiHeading and SimHsiCourse callbacks not functioning as described 

Activities

Fish

Fish

2021-02-11 05:27

reporter   ~0000241

I believe the Falcon BMS known bugs category may be more appropriate for this issue. A moderator might be kind enough to move it. Cheers.
airtex2019

airtex2019

2021-02-11 23:11

reporter   ~0000247

Relevant forum thread
https://www.benchmarksims.org/forum/showthread.php?39065-SimHsiCourseInc-still-increments-by-1&highlight=SimHsiCourseInc
airtex2019

airtex2019

2021-02-11 23:29

reporter   ~0000248

Seems like the right fix is (a) add a line
    set g_nKnobAccelerationDelta 300 // Milliseconds between subsequent clicks/rotations, to move knobs 5° instead of 1°
to the 'falcon bms.cfg' file (and consider adding it to the Config.exe UI but I think this is the kind of thing than can be self-discovered in the cfg file, when needed).

Or just raise the default .. but it seems preferrable to make these things self-discoverable and self-documenting, in the cfg file.

And (b) update the docs for g_nKnobAccelerationDelta to remove references to the "By5" callbacks .. there are none .. I think I understand what the doc is trying to say (ie. the generically named callbacks change behavior based on this cfg settings, and frequency of click -- while the "By1" callbacks do not) but it's very confusingly written.
airtex2019

airtex2019

2021-02-11 23:46

reporter   ~0000249

And (c) update the short descriptions in the key files, which confusingly declare that SimHsiCourse/Heading callbacks move by 5°
Blu3wolf

Blu3wolf

2021-02-24 23:11

manager   ~0000281

@Airtex2019, that suggestion to update the docs might be a good issue to post to the Documentation project.

I'm inclined to close this one as it's not a bug, it's a feature. The callback increments by 1, unless you repeatedly use it, in which case it increments by 5.
airtex2019

airtex2019

2021-02-25 00:01

reporter   ~0000282

It's the literal description strings in the keyfile that threw me off. Not sure if that counts as a doc-bug or data-bug, or code-bug.

But I'd agree most of this could be covered by fixing up the doc.
airtex2019

airtex2019

2021-02-25 00:09

reporter   ~0000283

Opened separate doc-bug: https://bmsbugs.blu3wolf.com/view.php?id=105
Blu3wolf

Blu3wolf

2021-02-25 05:12

manager   ~0000284

Fish, does adding the config file entry sort this out for you? As I understand it, you want the callback to increment/decrement by 5, instead of selecting 1 or 5 based on rate of the callback?
Fish

Fish

2021-02-25 08:06

reporter   ~0000286

Issue for me is i use an encoder to move the CRS and HDG, but they are so slow at 1deg increments, to make them unusable.

Config entry which made it adjustable is always preferable to hard coding a value. (and an update to the config descriptions).


Cheers,
Fish

Fish

2021-02-25 08:11

reporter   ~0000287

I would hope that the callbacks,...
SimHsiHdgIncBy1 116 0 0xC7 2 0 0 1 "MAIN: HSI HDG Knob - Increase (1°)"
SimHsiHdgDecBy1 116 0 0xC7 4 0 0 1 "MAIN: HSI HDG Knob - Decrease (1°)"
SimHsiCrsIncBy1 116 0 0xD3 2 0 0 1 "MAIN: HSI CRS Knob - Increase (1°)"
SimHsiCrsDecBy1 116 0 0xD3 4 0 0 1 "MAIN: HSI CRS Knob - Decrease (1°)"

are not modified, as they work as expected.

Thanks for all your good work and patience.
Blu3wolf

Blu3wolf

2021-02-26 00:20

manager   ~0000289

Cant you use the encoder with the by5 callbacks? If you turn the encoder rapidly, you should get increments by 5, and if you turn it slowly, increments by 1.

If I recall correctly, this was added for specifically the case of pitbuilders using encoders.
Fish

Fish

2021-02-27 11:36

reporter   ~0000295

Hi Blu3wolf,
In answer to your question, the encoder provides a keydn/keyup (with a fixed time lag in between) for each pulse, but there's a hardware limit to the speed of pulses. Its a switch encoder, and maybe other types of encoder or IO boards can get better performance.

But don't wish to make this discussion about my issue. The inconsistency remains, Take call backs to increment the CRS as one example of the 4 actions in question.

SimHsiCourseInc 116 0 0xC9 2 0 0 1 "MAIN: HSI CRS Knob - Increase (5°)"
SimHsiCrsIncBy1 116 0 0xD3 2 0 0 1 "MAIN: HSI CRS Knob - Increase (1°)"

Both of these call backs behave exactly the same way for me, they increment the CRS by 1deg for a single input pulse/keydn-keyup, no matter what the time is between the up and down. Both for key binds and HID button input.

As devs i understand you must prioritise importance , and it would not be the end of the world is the fix is to remove the 5deg call backs from the documentation, since they duplicate the 1deg call backs. My preference, however, would be to be able to move the knobs by 5deg from a single pulse, along with moving them 1deg from a separate call back.

Rgds
Fish.
airtex2019

airtex2019

2021-02-27 15:12

reporter   ~0000297

Is g_nKnobAccelerationDelta no help? Docs say the default is 60ms which imho is pretty crazy fast.
Fish

Fish

2021-02-27 16:05

reporter   ~0000298

Many thanks Airtex,
It was not clear to me from your post that that g_nKnobAccelerationDelta functionality was already in BMS.
I have now tested @300s and definitely pushes the knob round fast. Need to fine tune it now. Great.

I guess the only thing needed is to modify the call back descriptions as you suggested.

Cheers.
airtex2019

airtex2019

2021-02-27 16:30

reporter   ~0000299

Cool -- no worries. I was also not able to discover this on my own.. I also assumed the "by 5" callbacks were broken, until someone explained it to me.

My fix would be:

- raise the default from 60 to 300 so this acceleration behavior is more intuitively discoverable
(60ms is faster than many systems input-to-render latency... about 1/17th of a second. very hard to click a mouse or press a key faster than 17 times/sec.)

- add a line to default cfg file (and set it to 300 there).

- [consider] make it so that g_nKnobAccelerationDelta=0 always adjusts by 5 (for the not-by1 callbacks). for folks who want to bind separate inputs to coarse-adjust vs fine-adjust
anonymous

anonymous

2021-02-27 21:37

viewer   ~0000300

most systems have much lower render latency than 60 ms. 60 ms is a long time, in computing.

When last I looked at this, it was trivial to adjust with the mousewheel, which is what I think the default is based around?
airtex2019

airtex2019

2021-02-28 01:56

reporter   ~0000301

Just play-tested that a bit and I agree, 60ms seems well tuned to distinguish between slow-mousewheeling and fast-mousewheeling.

(I normally fly with g_bMouseWheelKnobs=0 because I hate trying to zoom in/out and accidentally twirling a random knob.)

I'd still like to see a line for g_nKnobAccelerationDelta added, right under g_bMouseWheelKnobs in the default cfg file, so it's discoverable.. even if it just explicitly setting the default 60.
Blu3wolf

Blu3wolf

2021-03-04 00:06

manager   ~0000331

So, we have 0000105 for updating the documentation to better allow for user discoverability of this feature. AFAIK @Fish has their problem sorted - so I guess we can go ahead and close this one at this point?
airtex2019

airtex2019

2021-03-04 01:26

reporter   ~0000340

I'm ok with closing this one.
Fish

Fish

2021-03-04 11:20

reporter   ~0000344

Happy to close it. Many thanks for all contributions.
Blu3wolf

Blu3wolf

2021-03-04 18:17

manager   ~0000345

closing as no change required.

Issue History

Date Modified Username Field Change
2021-02-03 16:48 Fish New Issue
2021-02-11 05:27 Fish Note Added: 0000241
2021-02-11 23:11 airtex2019 Note Added: 0000247
2021-02-11 23:29 airtex2019 Note Added: 0000248
2021-02-11 23:46 airtex2019 Note Added: 0000249
2021-02-24 23:06 Blu3wolf Relationship added has duplicate 0000103
2021-02-24 23:07 Blu3wolf Project EMF Known Bugs => Falcon BMS Known Bugs
2021-02-24 23:11 Blu3wolf Note Added: 0000281
2021-02-25 00:01 airtex2019 Note Added: 0000282
2021-02-25 00:09 airtex2019 Note Added: 0000283
2021-02-25 05:12 Blu3wolf Status new => feedback
2021-02-25 05:12 Blu3wolf Note Added: 0000284
2021-02-25 08:06 Fish Note Added: 0000286
2021-02-25 08:06 Fish Status feedback => new
2021-02-25 08:11 Fish Note Added: 0000287
2021-02-26 00:20 Blu3wolf Note Added: 0000289
2021-02-26 00:20 Blu3wolf Relationship added related to 0000105
2021-02-27 11:36 Fish Note Added: 0000295
2021-02-27 15:12 airtex2019 Note Added: 0000297
2021-02-27 16:05 Fish Note Added: 0000298
2021-02-27 16:30 airtex2019 Note Added: 0000299
2021-02-27 21:37 anonymous Note Added: 0000300
2021-02-28 01:56 airtex2019 Note Added: 0000301
2021-03-04 00:06 Blu3wolf Assigned To => Blu3wolf
2021-03-04 00:06 Blu3wolf Status new => feedback
2021-03-04 00:06 Blu3wolf Note Added: 0000331
2021-03-04 01:26 airtex2019 Note Added: 0000340
2021-03-04 11:20 Fish Note Added: 0000344
2021-03-04 11:20 Fish Status feedback => assigned
2021-03-04 18:17 Blu3wolf Status assigned => closed
2021-03-04 18:17 Blu3wolf Resolution open => no change required
2021-03-04 18:17 Blu3wolf Note Added: 0000345