Linuxcnc as flight simulator

More
15 Apr 2025 19:30 #326402 by juwi
Linuxcnc as flight simulator was created by juwi
Hi there.

I am planning to build a hexapod as a motion sim and would very much like to use linuxcnc as kinematics processor and mesa cards as motion controller.
this is because I am used to it in the normal manner and I like the dependability.
I have searched some time now and found the python hal interface and the python command module. 

As I just get xyzabc commanded positions from the simulator, I very much would like to just set the commanded position in linuxcnc to the new value andet it move as fast as possible to it. 
to prevent motion errors the allowed error would be set very high. 

If this sounds insane tell me, give me your thoughts. Is it possible to update just the commanded position via the hal python module? 

julian

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
15 Apr 2025 19:44 #326403 by tommylight
Replied by tommylight on topic Linuxcnc as flight simulator
Had the same idea today for a racing/flight sim! :)
I have no idea what games output for motion, that would help to know, but whatever it is (and i am sure no 2 games use the same output, but maybe through directX...), we would need just translating those to waypoints and from those to gcode.
Taping into games collision detection is out of the question by now as the coding on new games is absolutely terrible and utterly useless.
But, games that have display/gauges for pitch/tilt/angle of attack, should be much easier if they also output somehow somewhere those values.
Then there is the interpreter/LinuxCNC reading those values and sending motion, but should be doable, there are some "camera to motion" things working already somewhere on this forum.
Maybe use that and point the camera at the screen... :)

Please Log in or Create an account to join the conversation.

More
15 Apr 2025 20:18 #326405 by juwi
Replied by juwi on topic Linuxcnc as flight simulator
Actually if you use simtools there are multiple interfaces.
Serial, udp, write your own...

Every game that is supported by simtools then has the same interface.
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
15 Apr 2025 20:32 #326406 by tommylight
Replied by tommylight on topic Linuxcnc as flight simulator
OK, that simplifies things, a lot.

Please Log in or Create an account to join the conversation.

Time to create page: 0.055 seconds
Powered by Kunena Forum