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. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    2,159
    Location:
    Portugal
    Balance:
    15,270Coins
    Ratings:
    +2,533 / 17 / -0
    My Motion Simulator:
    6DOF
    Version 1.7.4
    Download in the first topic...

    Small change in rounding for rotating actuators and more decimal places in % of travel.
  2. 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 see, If you can get accurately rotational and translational separation with this method you will reach your goal. I am curious.
  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
    The string given by @Thanos is correct.

    <255><255><Axis3a><Axis4a><Axis5a><Axis6a><Axis1a><Axis2a><0><0><0><0><10><13>

    I don't have much time to test in details but from what I see, the scaling math seems to work well.

    Good job !
  4. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    2,159
    Location:
    Portugal
    Balance:
    15,270Coins
    Ratings:
    +2,533 / 17 / -0
    My Motion Simulator:
    6DOF
    Thank's.
    What do you think of the roll over?
    It should be used with the washout filter to avoid reaching the rig limits.
    It's just a low pass over an high pass filter. Seems to work good, but since I get the idea you are more of an air plane sim user, this is something crucial.
    Would like to have your opinion.
  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
    I am not so far yet.

    Tell me, is there something you can do to make the return of your washout, band pass, less grainy?

    Can it be that the resolution is quite low or there is something wrong tuned in my servos?

    Is it suppose to use all 16bit steps?



    Slower it gets more steps I can feel. Do you understand what I mean ?
    Last edited: Mar 12, 2019
  6. 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 just wanted to add to the other guys, I finally Got my AMC Barebones Interface to Work with You Program and im currently testing The setup using Optical encoders and @Thanos Encoder2pos Interface ,

    Almost there with Full speed actuator operation, and Your Program Connects everytime so im in a good place again thanks to a lot of help from The Crew LOL , Still have one last snag whilst testing issue, with what seems to be Lost Encoder Position.

    When I Rapidly Move an Axis Cursor rapidly back and forth to simulate high speed actuator motion, But as with most of my self inflicted Issues, I need to find out what connection I missed of maybe fit A decoupling cap somewhere in case its noise .
    Both your FlyPThexpod and BFF and maybe simtools Output test sliders show the same lost position Condition, So im determined to find the Cause and then roll out this Actuator (with Optical encoder) to all my Other Actuators .

    Will Post Video at some point , but thanks again for making this Program available , hopefully a better update next time but wont clutter your Post..
  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
    Hi again,
    Would you agree to change your simtools interface to follow simtools AND heXpod dof interface order?
    si.JPG mu.JPG
  8. 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
    There is something strange in your comport speed.
    When you choose 10ms it becomes extremely jerky. The transmission is certainly not updated 100 times a second.
  9. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    2,159
    Location:
    Portugal
    Balance:
    15,270Coins
    Ratings:
    +2,533 / 17 / -0
    My Motion Simulator:
    6DOF
    Hi,

    Sorry, I'm seeing the notifications, but I'm with a big load of work right now.
    I will take a look later.
  10. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    2,159
    Location:
    Portugal
    Balance:
    15,270Coins
    Ratings:
    +2,533 / 17 / -0
    My Motion Simulator:
    6DOF
    I will make it optional.

    Relative to the problems you are reporting, I was making a scan on the code, and found....
    A really stupid error in rotating actuators calculation.
    There was a loop of an old test code that made the calculation repeat multiple times (bigger the angle, more repeats :eek:).
    I'm correcting it and will post a new build.
    I'm also taking the chance to optimize the calculation formula.
    • Like Like x 1
  11. 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
    If it’s not unified It can lead into a nightmare while sharing presets and config files.
  12. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    2,159
    Location:
    Portugal
    Balance:
    15,270Coins
    Ratings:
    +2,533 / 17 / -0
    My Motion Simulator:
    6DOF
    I'm just reordering the controls.
  13. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    2,159
    Location:
    Portugal
    Balance:
    15,270Coins
    Ratings:
    +2,533 / 17 / -0
    My Motion Simulator:
    6DOF
    Version 1.7.5

    Go to first post for the download.

    Sem nome.jpg

    New version with:
    -Optional order of pose components. Changes the order of the controls to match the Simtools order.
    -"Unrolled" some maths of the equation for solving rotating actuators. It's now faster.
    -Removed an old loop forgot in the rotating actuators code.
    -Changed some parts of the code related to serial output. Still needs optimisation, but the thread where it runs is better.
    • Winner Winner x 1
  14. C1500

    C1500 Active Member

    Joined:
    Nov 19, 2018
    Messages:
    165
    Location:
    Germany
    Balance:
    1,119Coins
    Ratings:
    +86 / 1 / -0
    My Motion Simulator:
    AC motor, 6DOF
    Hi FlyPT
    I had only short time for testing.
    But...
    Only one thing happen when I press on the start button.
    The Rig goes in lowest position an stops there.
    There was no movement on any slider activity

    I copied the *exe over the existing one.
    The last Version i used was 1.7.0
    Do I have to configure it completely new in every new version or can I use my settings from the older version?

    Hopefully I got more time this evening.
    Kind regards
    Peer
  15. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    2,159
    Location:
    Portugal
    Balance:
    15,270Coins
    Ratings:
    +2,533 / 17 / -0
    My Motion Simulator:
    6DOF
    Old config should work.
    But you can load the old one and save a new one to remove the garbage (some values where removed from the config).

    Look at the left down corner and see if you have "Lock in lowest position" checked.
    Even if it's not checked, try to change the value and see if it works.
    Also, confirm that the serial config is OK.

    I will take a look to see if there's something wrong, but I was receiving data in my test.
  16. grgdnsvr

    grgdnsvr New Member

    Joined:
    Jan 15, 2019
    Messages:
    2
    Balance:
    40Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    6DOF

    Thank you @pmvcda so much for your reply. I can get some values now. I realized that i had been using an older version.
    Now i have another question. I can't relate the interval with the frequency of output that i got. For example, i use 5 ms interval for 160 seconds of motion but i got around 2000 lines of output. Is it possible that there is a problem about the interval option? or maybe it's something about the sniffer i use.
  17. 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
    Very good improvement. Keep up your good work!
  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
    Do we need to update the interface dll as well?
  19. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    2,159
    Location:
    Portugal
    Balance:
    15,270Coins
    Ratings:
    +2,533 / 17 / -0
    My Motion Simulator:
    6DOF
    No, there's no changes in the plugin.
    Did you try the serial communication?
    @C1500 had problems, just to confirm if it works for you.
    Thank's!
  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
    472E27A6-79A9-4FDE-9908-216E0123208B.jpeg
    - serial communication got better,
    - the dofs fits the simtools order.

    The washout still returns in a bit jerky way but it could be my Pid/servo accel parameters.

    Or serial speed, or output resolution, No idea.

    You could maybe try to isolate on a single core.
    Maybe it makes sense in your case

    If you like you could dig into it on your side.
    Last edited: Mar 14, 2019