FORUM › Forums › Software › CLS2SIM Software › API, Interface control documentation › Possible bug related to remote control
Tagged: CLS2Sim Remote Control UDP
- This topic has 2 replies, 1 voice, and was last updated 3 weeks ago by
Howard.
-
AuthorPosts
-
17/06/2025 at 12:26 #4255
Howard
ParticipantWhile 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.17/06/2025 at 12:34 #4257Howard
Participant2. 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.
17/06/2025 at 16:51 #4258Howard
ParticipantI’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.
-
AuthorPosts
- You must be logged in to reply to this topic.