FORUM Forums Software CLS2SIM Software API, Interface control documentation Possible bug related to remote control

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #4255
    Howard
    Participant

    While I’ve been playing with my scripts to remotely control the yoke I’ve found what may be a bug, and maybe two.

    1. I first noticed that that CLS2Sim would only respond a single time with the packet “0x01,0x00”. From then on I would get nothing from it, unless I restarted CLS2Sim. I have eventually narrowed it down to this.

    If you have the ‘Settings’ option, “Send UDP response back to sender” ticket, you can’t remotely control the yoke. If I untick that, but ensure the values beneath match what you want, then it works well. It’s not a firewall issue either as I have that disabled.

    Attachments:
    You must be logged in to view attached files.
    #4257
    Howard
    Participant

    2. The second “issue” is an odd one. I haven’t yet sussed the interdiction of buttons, it doesn’t seem to work for me yet, so for now I have unbound trim/up down from the yoke. I have my script that can send the relevant packets, and that too seems to work. I have a small delay between the button down, and up commands which effectively lets me control how fast I can trim.

    {
        //udpClient.Send(interdict_on, interdict_on.Length, udpIp, udpPort);
        udpClient.Send(data, data.Length, udpIp, udpPort);
        System.Threading.Thread.Sleep(100);
        udpClient.Send(up, up.Length, udpIp, udpPort);
        //udpClient.Send(interdict_off, interdict_off.Length, udpIp, udpPort);
        udpClient.Close();
    }

    The longer the sleep the longer the button is held down. On to the actual “issue”. What I noticed was the virtual cockpit trim wheel actually moves when using this method, but it does not move when you use the trim switches, and that function is bound in CLS2Sim.

    I need to do some more testing as I’m not 100% certain everything was synced up as the trim indicator seemed to show quite a bit of trim down and my yoke was a little back to my chest.

    When you have the trim up/down buttons bound to the yoke switch the compiled scripts don’t work, as you would expect, but when trimming the virtual cockpit trim wheel doesn’t move. It’s like the external control gives you the best of both worlds.

    I also noticed with the yoke switch is I can feel the yoke move towards me in jumps, but the trim wheel external method I don’t. I can only assume that is the stepping on the trim wheel is larger than the scripted, external method.

    Either way I’m getting there, I just need to find out why the interdiction of the yoke switches isn’t working.

    #4258
    Howard
    Participant

    I’ve pretty much confirmed that when sending UDP packets to control up/down trim, it is actually changing the trim values in the sim. Using SPAD, I observed the SimConnect values for elevator trim position, and percent, and they change when sending a command like:

    UDPSend.exe d5 00 00 00 ea 03

    My assumption was this should be the same as pressing the buttons on the yoke that are bound to either trim up or trim down. What it actually seems to be doing is working like software trim, and interacting with the sim.

    I have no idea whether this correct or not, but it doesn’t work like the yoke buttons do if bound. They do not interact with the sim, and those SimConnect values do not change. I have also not made the change to the elevator trim limit as my understanding was you didn’t need to do that for hardware trim.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

BRUNNER Forum​

In the BRUNNER forum you will find various discussions on different topics, such as setup, software use or general questions and concerns. 

Discuss with forum mebers, share your knowledge and experience or find answers to frequently asked questions that are answered directly by our Brunner team.

Go to BRUNNER Forum.

BRUNNER Helpdesk​

Do you have questions about a product you have already purchased or are you facing technical issues? 

Check our FAQs for quick help. The most common questions or problems are described there, including instructions.

If you are still stuck, please contact our BRUNNER Helpdesk. Open a ticket here.

BRUNNER Simulation​

BRUNNER is a leading manufacturer of flight simulation devices for the professional as well as the enthusiast sector.

Unlike other manufacturers, Brunner offers a realistic flight experience with the help of Force Feedback Technology and Control Loading System.

Discover the BRUNNER Shop.

BRUNNER Simulation

Industriestrasse 27
8335 Hittnau


+41 (0)44 953 10 10
in**@****************on.swiss