1. Do not share user accounts! Any account that is shared by another person will be blocked and closed. This means: we will close not only the account that is shared, but also the main account of the user who uses another person's account. We have the ability to detect account sharing, so please do not try to cheat the system. This action will take place on 04/18/2023. Read all forum rules.
    Dismiss Notice
  2. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Now a Download Plan!
  3. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  4. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company rules

FlyPT 6DOF/Stewart/Hexapod Interface for linear and rotating actuators

Discussion in 'FlyPt Mover' started by pmvcda, Jan 2, 2019.

  1. hexpod

    hexpod http://heXpod.xyz

    Joined:
    Apr 18, 2016
    Messages:
    1,185
    Location:
    berlin
    Balance:
    7,636Coins
    Ratings:
    +369 / 5 / -0
    My Motion Simulator:
    DC motor, 6DOF
    It’s another feature? Where can one switch it on/off?
  2. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    2,158
    Location:
    Portugal
    Balance:
    15,264Coins
    Ratings:
    +2,532 / 17 / -0
    My Motion Simulator:
    6DOF
    Check boxes on the roll column. between range and flip.
  3. hexpod

    hexpod http://heXpod.xyz

    Joined:
    Apr 18, 2016
    Messages:
    1,185
    Location:
    berlin
    Balance:
    7,636Coins
    Ratings:
    +369 / 5 / -0
    My Motion Simulator:
    DC motor, 6DOF
    Ok thanks,
    Let’s take the sway in xplane.

    Why smoothing and delay are so huge with value 1 of LPF ?
    805774D6-8B4C-4EF0-9B4D-D1209075C029.jpeg

    Attached Files:

    • Like Like x 1
  4. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    2,158
    Location:
    Portugal
    Balance:
    15,264Coins
    Ratings:
    +2,532 / 17 / -0
    My Motion Simulator:
    6DOF
    Because when reordering to use simtools order, the low pass controls are not reordered.
    Copy paste the high and didn't changed to low...
    So in reality you are using a low pass with 180 samples.... the first control.

    In the next update, I have some bugs corrected in the filters.
    DEMA and TEMA had some signals changed when simplifying the formula....
    • Like Like x 1
  5. hexpod

    hexpod http://heXpod.xyz

    Joined:
    Apr 18, 2016
    Messages:
    1,185
    Location:
    berlin
    Balance:
    7,636Coins
    Ratings:
    +369 / 5 / -0
    My Motion Simulator:
    DC motor, 6DOF
    Could you add on program launch those two features plz. ? :
    - Auto connect to the comport
    - Auto connect to SimTools

    Two checkboxes. You can put the warning dialog so one is aware about the consequences

    Thanks
  6. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    2,158
    Location:
    Portugal
    Balance:
    15,264Coins
    Ratings:
    +2,532 / 17 / -0
    My Motion Simulator:
    6DOF
    Version 1.7.9

    Download in first post.

    New version with:
    -Optimisation and treatment of some bugs on the filters. Now DEMA and TEMA are working correctly.
    They have less lag compared to EMA, but they are slower and go above the spikes.
    -Corrected bug where low pass filter values where not ordered when changing to SimTools order type.
    -Config file, now saves the graphics selections and the auto gain selection.
    -Added Options to connect to SimTools and serial at startup (@hexpod ).

    Sem nome.jpg
    • Like Like x 3
    • Informative Informative x 2
  7. hexpod

    hexpod http://heXpod.xyz

    Joined:
    Apr 18, 2016
    Messages:
    1,185
    Location:
    berlin
    Balance:
    7,636Coins
    Ratings:
    +369 / 5 / -0
    My Motion Simulator:
    DC motor, 6DOF
    Well done.

    The comport auto start works fine.

    Would it be possible to modify SimTools autostart and make it wait for simtools to avoid a dialog “not connected, bla bla” in case when the game is launching after FLYpt execution?

    Sort of auto trigger when simtools goes on
  8. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    2,158
    Location:
    Portugal
    Balance:
    15,264Coins
    Ratings:
    +2,532 / 17 / -0
    My Motion Simulator:
    6DOF
    OK, I will add a check box with:
    "Connect to SimTools when available"
  9. wannabeaflyer2

    wannabeaflyer2 Well-Known Member

    Joined:
    Jun 12, 2015
    Messages:
    724
    Location:
    london uk
    Balance:
    8,310Coins
    Ratings:
    +953 / 7 / -0
    My Motion Simulator:
    2DOF, Arduino, Motion platform, 6DOF
    Hi @pmvcda
    Mate every time I read this post, it never fails to amaze me at how reactive you are to users Request, Software coding at this level , is not for the faint hearted and your workrate is Brilliant for us here and the pace at which this utility is growing is Brilliant .
    Said it before , and will say it again . Thanks for the Hard work on behalf of the 6DOF sim Builders Crew ..Hats of to you Sir, Cos you Rock :)
    • Agree Agree x 3
    • Like Like x 2
    • Friendly Friendly x 1
  10. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    2,158
    Location:
    Portugal
    Balance:
    15,264Coins
    Ratings:
    +2,532 / 17 / -0
    My Motion Simulator:
    6DOF
    There are still some errors and things to add...

    For example, if you swap the transform, for translations to happen in the coordinate system of the top platform, you have to keep center of rotation at 0,0,0 or it makes a wrong transform (solved for next version).
    • Like Like x 1
  11. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    2,158
    Location:
    Portugal
    Balance:
    15,264Coins
    Ratings:
    +2,532 / 17 / -0
    My Motion Simulator:
    6DOF
    Version 1.8.0

    In the first post for download.

    -Corrected an error with the quaternation, when we had center of rotation different from origin and translations on the coordinate system of the top platform.
    -Took the chance to make some cleanup on the pose class.
    -Added this:

    Sem nome.jpg

    Works like described. Only one time, or you wont be able to stop the connection with SimTools.

    Enough updates for this week... my bosswife is not happy...
    • Funny Funny x 2
    • Winner Winner x 2
  12. hexpod

    hexpod http://heXpod.xyz

    Joined:
    Apr 18, 2016
    Messages:
    1,185
    Location:
    berlin
    Balance:
    7,636Coins
    Ratings:
    +369 / 5 / -0
    My Motion Simulator:
    DC motor, 6DOF
    Switch and open a good bottle of wine, you deserve it ! ;-)
    • Agree Agree x 2
    • Like Like x 1
    • Friendly Friendly x 1
  13. Pierre Lalancette

    Pierre Lalancette Sir Lalancelot Gold Contributor

    Joined:
    Dec 11, 2016
    Messages:
    959
    Occupation:
    Tech Artist
    Location:
    Quebec, Canada
    Balance:
    7,779Coins
    Ratings:
    +896 / 6 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, 6DOF
    Hello @pmvcda Just wanna say that your interface is working fine. It's just that roll got inverted from version to version. I don't know why I did not felt it right away, but it is corrected. I still don't feel the acceleration, but I do feel the breaks. Still a lot of calibration, but it's the best run of Asseto Corsa so far. Asseto_Corsa.jpg
    • Like Like x 1
  14. Pierre Lalancette

    Pierre Lalancette Sir Lalancelot Gold Contributor

    Joined:
    Dec 11, 2016
    Messages:
    959
    Occupation:
    Tech Artist
    Location:
    Quebec, Canada
    Balance:
    7,779Coins
    Ratings:
    +896 / 6 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, 6DOF
    Quick question @pmvcda . In the washout filter, the second value slow down the return to the zero center. In one example, you put it to 500 and this is what I used on my Elite Dangerous setup. But, what is the use of the first number. In your explanation, it seems to be for the high pass filter, but what does it do exactly? It smooth the high frequency?
  15. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    2,158
    Location:
    Portugal
    Balance:
    15,264Coins
    Ratings:
    +2,532 / 17 / -0
    My Motion Simulator:
    6DOF
    I'm writing a guide to post today or tomorrow I hope...

    First number is the number of samples used to calculate the low pass filter
    Second one, the number of samples used to calculate the high pass filter

    If you put 1 in the left one, everything passes
    If you put 1 in the right one, nothing passes, because High Pass = Value - Low Pass
    So for high pass, the bigger the value, more low frequencies can pass
    For the low pass, higher the value, more high frequency can pass
    For Band stop and Band pass, you use both values, what passes is what you have out of them or between them

    The washout uses a different approach.
    The value is filtered by this formula:

    filteredValue=lowPass (highPass (unfilteredValue))

    The high pass is limiting the maximum value of yaw and making it come back to zero (500 is working for me on LFS tests, but it depends on the track amount of corners).
    An high spike value could pass (high frequency), but then you have the low pass to remove it.
    So the left value in this case (low pass) is how much you want to soften the high pass.
    If you put to much, you get a delayed response to yaw, because you are softening to much.
    If you put 1 (none), a spike can pass and make the rig vibrate.
    I would use 5 in low pass.

    The roll over should be used with the filter. Alone is going to make yaw saturate (horizontal line in the graphic).
    You can try also a band stop filter to achieve a similar result. Might work even better.

    Sorry for fast response, hope there's no error here. I have some work to do...
  16. Pierre Lalancette

    Pierre Lalancette Sir Lalancelot Gold Contributor

    Joined:
    Dec 11, 2016
    Messages:
    959
    Occupation:
    Tech Artist
    Location:
    Quebec, Canada
    Balance:
    7,779Coins
    Ratings:
    +896 / 6 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, 6DOF
    Hey, thanks.
    Again, I will try this as soon as I can.
    Filter are not that hard to understand mathmatically. It's their application: What should I use that filter for? How much value should I put? Those are harder to find.
  17. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    2,158
    Location:
    Portugal
    Balance:
    15,264Coins
    Ratings:
    +2,532 / 17 / -0
    My Motion Simulator:
    6DOF
    Version 1.8.1
    Download in first post

    Complicated week at work...
    Well, not much here, just uploaded a build with some things I had in the background...
    Main change is this:

    Sem nome.jpg

    MMF stands for memory mapped file (UDP for consoles later).
    Might have errors....

    Select SimTools for normal use.
    Select the other options for direct data from the games (only two for testing).
    In that case, use 180º in angles range, just like in the figure.
    Mixing of surge in pitch needs to be swapped between Project CARS 1/2 and Assetto Corsa.
    And maybe some other flaws...
    There's no traction loss. It should come from the received data, but needs some changes/tuning.
    So yaw is really yaw. Be careful. Needs filtering and anti roll enabled.
    This is preparation for future big changes in the software... Nothing to do with current one. ;)
    • Like Like x 3
    • Winner Winner x 1
  18. hexpod

    hexpod http://heXpod.xyz

    Joined:
    Apr 18, 2016
    Messages:
    1,185
    Location:
    berlin
    Balance:
    7,636Coins
    Ratings:
    +369 / 5 / -0
    My Motion Simulator:
    DC motor, 6DOF
    Would it be possible to build a feature (checkbox activated) for "local coordinated" kinematics? (translations dependent on rotations) in opposition to what we have now: "world coordinated" kinematics (translations independent from rotations) ?

    After a detailed discussion with @Dirty, this is something which could be highly profitable, especially for flight simulators but also for quality racing games.

    As you have the access to the kinematics matrix, it is something which could be doable.

    Cheers
    Last edited: Mar 23, 2019
  19. BlazinH

    BlazinH Well-Known Member

    Joined:
    Oct 19, 2013
    Messages:
    2,145
    Location:
    Oklahoma City, USA
    Balance:
    16,621Coins
    Ratings:
    +1,835 / 32 / -1
    This is fantastic news and just what I have been advocating for. Don't get me wrong Simtools is great software but there's really no need for us to have to use it with comprehensive software like pmvcda is developing except when telemetry can't be achieved natively. The best part about Simtools is its fairly easy to learn but its also limited in ways. Its sufficient most times but there's no reason things can't be taken to the next level when more information is available etc. And since, "At the core of XSimulator, is a belief that creativity and knowledge should be open and free" there's plenty of room here for Simtools to have some company.
    • Agree Agree x 1
  20. hexpod

    hexpod http://heXpod.xyz

    Joined:
    Apr 18, 2016
    Messages:
    1,185
    Location:
    berlin
    Balance:
    7,636Coins
    Ratings:
    +369 / 5 / -0
    My Motion Simulator:
    DC motor, 6DOF
    I am saying again, for a good motion, the filters have to be applied before the kinematics (ON THE EFFECTS) and NOT after (ON THE DOFS). Unless FLYpt incorporates all the functionalities of the "SimTools's "Game Engine like" Tunning Center", "Axis Assignements" matrix, game plugins compatibility etc. there is a huge advantage to use the combination of both.

    All we need is ema dema and washout functionality from FLYpt in SimTools and instead of 3 "Tunning Center's" extras, 12 of them. of course in upcoming "expert mode" :)

    Maybe FLYpt could share his filtering knowledge with @yobuddy. In this case it will be a PERFECTION ! :)

    The future will show us what is going to happen.

    Thanks
    • Like Like x 2
    Last edited: Mar 23, 2019