-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
Allow export of RAW DCS API to allow for DCS Features that are unsupported in DCS-BIOS #1018
Comments
@kbastronomics could you detail some of the raw functions you'd like to use? If not |
What I was thinking was more generic like this for the APU switch on the F/A-18
so allowing us to send to 375 directly, bypass the clickable action. Does that clarify what I'm thinking better? |
As we know for the F/A-18 the performClickableAction does not work. I believe it was something to do with how the cockpit treats things as momentary but thr bios it's not (i probably have that all wrong, going from memory) but when I used Insight, the APU behaved as it should and disengage after about 2 minutes once both engines spun up so what I'm hoping for (in that particular example) |
Could you perhaps show a screenshot of what you were doing in Insight? That constant is an argument to a function, and I just need to know which one. |
lets see if video's attach, too big https://discord.com/channels/533342958712258572/535008796536340480/1156314850037870746 the last one is how it should work and does work in insight. but I did notice in insight i seed the 3003 not the 377 (engine crank) from the clickabledata.lua file doing that in insight works, bort nor thru arduino does work |
So looks like this is the video you're referring to. That uses performClickableAction, which is exactly what the dcs-bios command does. From watching this other video you posted using bort, that also shows that it does in fact work with dcs-bios in the same way (well, crank right doesn't work, but that would be a separate bug and I thought we fixed that, but maybe not) Overall, I'm not following: what is working with insight that is not working with bort? |
Would it do us any good to set up a voice chat so we can talk through what's going on? |
I'd prefer to stick to text. The issue (as I recall it) was that telling bios to set 1 and then set 0 in the same frame resulted in the 0 being ignored. But that's not bios dumping the message to my knowledge - that's dcs ignoring it. In fact, we even tried having bios set 0 and then set 1 on the click. We do this for many other controls and it works fine. For this control, it doesn't seem to. So you can do the same with a raw call to performClickableAction or whatever else, but I suspect you'll get the same result - dcs is going to dump the subsequent message sent in the same frame. |
This is why I think a chat would be beneficial.This is not a DCS issue this works correctly when done with DCS insight. It does not work correctly with bort or DCS bios or a panel calling an Audrina library to DCS bios only DCS Insight will do it correctly. I cannot toggle back to zero and it function in board or through my panel itself. Insight is the only one at honor is it?Sent from my iPhone 15 Pro MaxOn Dec 3, 2024, at 1:01 PM, Charlie ***@***.***> wrote:
I'd prefer to stick to text.
The issue (as I recall it) was that telling bios to set 1 and then set 0 in the same frame resulted in the 0 being ignored. But that's not bios dumping the message to my knowledge - that's dcs ignoring it. In fact, we even tried having bios set 0 and then set 1 on the click. We do this for many other controls and it works fine. For this control, it doesn't seem to. So you can do the same with a raw call to performClickableAction or whatever else, but I suspect you'll get the same result - dcs is going to dump the subsequent message sent in the same frame.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Could you tell me which part of the bort video is not working as expected? Because when I watched the bort video I saw you click to set it to 0 (crank left), and then while it was cranking you clicked to set it to 1 (center position), and the switch remained in the left position until the magnet released at which point the switch returned to center. This is also exactly what you did (albeit for the right side) in the insight video. Perhaps you could attach a video demonstrating exactly what isn't working using bort? |
Not ingoring just going back and re-capturing data to be sure I'm reporting/asking correctly. |
i hooked up a caution panel so we can see what is happening in the video's the next video is same momentary switch but held in position like the mag switch would do however what I believe is happening is as you know the main loop() in Arduino is asynchronous, its called as fast as possible by the Arduino code itself so DCS-BIOS sends the message to turn the magnet off but is immediate re-read by dcs-bios via the call in loop() so it would seem we need a method to stop checking the switch position when the magnet is on, but this has a side effect of you cannot manually change it now so there has to be a better way thats why I was thinking of raw data but after a year I guess my memory was fuzzy |
I'm currently traveling but will try to take a look at this in a few days |
@kbastronomics those video links don't seem to work for me - clicking definitely doesn't work and copy/pasting the url into my browser says "This content is no longer available." |
copy/paste the text of the links into the broswers, github seems to want to send you to github and these are discord links BTW, i have the Engine Crank working (kindoff) we can not manually turn to off in the pit so something not in sync there the 2 pos switch so far I can not get to work |
oh I see what you mean on the link |
Version
Aircraft
F/A-18C ( this would apply to all though)
Control
RAW API control access
Description
Currently there are features in DCS that DCS-BIOS is not able to support. Such as Magnetically held switched in the F/A-18, F-16 i believe has same issue.
by allowing DCS-BIOS to send/receive RAW API messages and allowing the end user to handle on thier own this opens up DCS-BIOS so that thing like Magnetically Held swtich can work.
as a proof of this. in the F/A-18 module we know that DCS-BIOS does not process the needed functions as it only does the performClickableAction. while testing we found that the issue existed for the Arduino library making the request and the way DCS-BIOS processed it did not function as it should, and the switch would not release.
however, using DCS Insight we were able to show that DCS itself recognized the events and released the switch as it should
with this in mind allow DCS-BIOS to process the same messages as Insight does would resolve this issue but also open up new support withing DCS-BIOS for new features allowing user to implement them even if the core project chooses not to.
this could be a use are your own risk to avoid the DCS-BIOS team from having to support user written code and allowing only the community to support
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: