My 2 schoolmates and me are building 3DoF pneumatic simulator as a school project.
We are using Velleman k8055n control board using six outputs for 3 axis in x-sim converter (previous profiler) and we are testing with LFS.
On the hardware side everything works because we can manipulate with our simulator using buttons connected to pneumatic valves but we have hard time with software since we still don't know how to set up math setup.
We would like our cylinders to travel to mid point at start and to go back to mid point on the straights after a corner.
When we go into a corner it all works fine (rear cylinder rises for braking, one of front cylinders rises and one lowers) but the trouble occurs when we exit a corner. Instead of going back to normal position (what we want to achieve) front 2 cylinders stay in their position like we were still in the corner which affects every corner afterwards.
We would like if someone can help us setup math and if possible help us find a way to center cylinders (we do have some sort of sensors/switches that we can attach to cylinders and are activated by pistons when they pass by)
Here is a picture of our simulator gutted so you can see cylinder arrangement:
Kind regards, Aleksander
P.S. English is not my primary language (I am from Slovenia) so if there is anything that you don't understand please let me *