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 Mover

Discussion in 'FlyPt Mover' started by pmvcda, May 30, 2019.

  1. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    2,095
    Location:
    Portugal
    Balance:
    14,900Coins
    Ratings:
    +2,504 / 17 / -0
    My Motion Simulator:
    6DOF

    I wanted to include transition in this build, but I needed to change some more things in the sources code.
    I want to clean it a bit. I think I have it confusing right now.
    • Like Like x 1
  2. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    2,095
    Location:
    Portugal
    Balance:
    14,900Coins
    Ratings:
    +2,504 / 17 / -0
    My Motion Simulator:
    6DOF
    I'm making some more test's.
    I'm trying to remove the spike without any interaction. I think it might be possible.
    • Like Like x 1
  3. JAD

    JAD Active Member

    Joined:
    Jan 17, 2016
    Messages:
    205
    Location:
    Australia
    Balance:
    1,446Coins
    Ratings:
    +141 / 3 / -0
    Great! Thanks for sorting this out.
    Ive been doing some homework in the meantime trying to understand how CR and LF is sent in decimal in a serial terminal program but it isnt so plain to search for.
    I'll eagerly await your next update.

    Regarding the bit choice, 14bit worked out better and matches the machine units without any scaling
    Once I understood how soft limits are managed within the Kangaroo and a machine zero is set relative to the hardstop, then the remaing working range nearly matched exactly the 14bit range.
    It was a coincidence that 16560 machine units is the actual working range for the encoder/gear ratio/ball screw length I had.
    Sending a p0 is 50mm off the bottom hard stop, and sending p16383 is nealy 50mm away from the top hardstop.

    But the Kangaroo module can receive any other bit range value and scale it internally to the machine units it works with. I just didnt need to add this step in my setup.
  4. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    2,095
    Location:
    Portugal
    Balance:
    14,900Coins
    Ratings:
    +2,504 / 17 / -0
    My Motion Simulator:
    6DOF
    FlyPT Mover 2.5

    New build for download in the first post of the topic.

    What changed:
    -Solved bug in serial output, that did not allow to send CR and LF in the proper way (decimal output). @JAD please make a test.
    -Removed old files from old filter system.

    For XPlane11:
    -Cleaned XPlane11 source.
    -Just one click to open and close both sources (air and ground).
    -Transition between both states with user defined speed for each direction.
    -Filter for accelerations in ground source. Allows testing with filters, but predefined filter seems to work(at least on the graphics since I could not test in the rig)

    Sem nome.jpg
    • Like Like x 2
    • Winner Winner x 1
  5. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    2,095
    Location:
    Portugal
    Balance:
    14,900Coins
    Ratings:
    +2,504 / 17 / -0
    My Motion Simulator:
    6DOF

    I think the problem is now solved.
    To send the CR and LF, we have to send the char. But you can't see it as a letter, so you can't specify that directly. We have to send a byte with the value of that "letter"/char.
    CR is 13 and LF is 10.
    When you put it in Mover like <10> <13> in decimal format, it sends a byte with that value.
    If you where using binary, <10> and <13> are just that value.
    The problem in Mover was that it was converting 10 and 13 in two chars: char '1' and char '0' or '3'.

    I might change it to recognise <LF> and <CR> and keep numbers just as they where... Don't know.
  6. Thanos

    Thanos Building the Future one AC Servo at a time... or 6

    Joined:
    Jul 6, 2017
    Messages:
    1,358
    Occupation:
    Electronics Engineer
    Location:
    United States
    Balance:
    2,773Coins
    Ratings:
    +1,050 / 9 / -0
    My Motion Simulator:
    AC motor, Motion platform, 4DOF, 6DOF
    That's why I entered the LF and CR as numbers in my last video, like this:

    (4 axis output string)
    <255><255><Axis1a><Axis2a><Axis3a><Axis4a><0><0><0><0><0><0><0><0><10><13>
    (6 axis output string)
    <255><255><Axis3a><Axis4a><Axis5a><Axis6a><Axis1a><Axis2a><0><0><0><0><10><13>

  7. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    2,095
    Location:
    Portugal
    Balance:
    14,900Coins
    Ratings:
    +2,504 / 17 / -0
    My Motion Simulator:
    6DOF
    Yes, but in binary the conversion was correct. He's using decimal and it was converting <13> to "13" not the byte 13
    • Funny Funny x 1
  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
    Review about ground spikes :

    I see it’s complex. Two small issues. Fine tweaking needed.

    1.)
    I have the feeling that you went for a bit to radical solution. At the very and stop there is simply nothing coming through.

    2.)
    It is adding some strange artifacts (small jump) while the response should be progressive. Please see this:

    In the graph you see the amount of left and right brakes and the longitudinal accel.

    Observe the slider response in Mover :

  9. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    2,095
    Location:
    Portugal
    Balance:
    14,900Coins
    Ratings:
    +2,504 / 17 / -0
    My Motion Simulator:
    6DOF
    Ok, did you played with the filter?
    You can put anything there.
    Filter is applied if brakes are active and the plane is on the ground.

    The default filter I used is the spike filter:

    SPIKE(VALUE;1.0;0.05)

    This filter is removing all values that have a variation above 1.0
    0.05, means that we remove that spike, but use 0.05 of the amount of the variation.

    Imagine we have a spike that goes from a value of 3 to 6.
    That's a variation of 3, so the value is ignored. But we specified that even filtered, we want to use 0.05 of the value. So instead of staying at 3, the new value is 3+ (6-3)*0.05 = 3.15
    • Informative Informative x 1
  10. 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
    Hahhh. It’s the same “spike remover” as for air => ground ??

    I have diminished the value because landing was just ridiculously soft.

    Best
  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
    I’ll test it more in details...
  12. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    2,095
    Location:
    Portugal
    Balance:
    14,900Coins
    Ratings:
    +2,504 / 17 / -0
    My Motion Simulator:
    6DOF

    No, air to ground is the speed of transition.
    If you put 1.0, transition is instantaneous, with zero, it's not changing
    The number is a %.
    That air to ground, should be really fast or disabled, while ground to air should be smoother.
    So air to ground with a big value maybe even 1.0, while ground to air with a lower value like 0.1 (changes in steps of 10% up to 100%)
    • Like Like x 1
  13. JAD

    JAD Active Member

    Joined:
    Jan 17, 2016
    Messages:
    205
    Location:
    Australia
    Balance:
    1,446Coins
    Ratings:
    +141 / 3 / -0
    Can confirm output is all good with CR and LF for decimal.
    Love your work
    Cheers!
    • Like Like x 1
  14. JAD

    JAD Active Member

    Joined:
    Jan 17, 2016
    Messages:
    205
    Location:
    Australia
    Balance:
    1,446Coins
    Ratings:
    +141 / 3 / -0
    What i like about Mover is the wysiwyg style.
    I had manual heave setup for + and - 100mm in the pose window and I put a tape measure on the sim body to the floor and it measures out sub millimeter accurate.
    Its great to see whats going on and what is being sent on the output before you hit connect.
    It takes out some of the nerves when setting up for the first time.
    • Like Like x 1
  15. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    2,095
    Location:
    Portugal
    Balance:
    14,900Coins
    Ratings:
    +2,504 / 17 / -0
    My Motion Simulator:
    6DOF
    The wysiwyg, was one of the aims of mover and the old program.
    Now needs forward kinematics for full fidelity.
    I have made some progress there, but it's not ready.

    Besides the 3d view the graphics where a needed tool to tune filtering.
  16. 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
    Almost perfect!

    I managed to tune the spikes perfectly but
    I still have a trouble with side coordination channel.

    Example :

    The platform is banking left or right using “mix sway in roll” while doing circles on the ground.

    If you want to accentuate the circle curve by applying the toe brake the coord channel is quickly centering the platform destroying the effect.

    The issue is sometimes present sometimes not.

    Are you able to reproduce it ?

    Best
  17. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    2,095
    Location:
    Portugal
    Balance:
    14,900Coins
    Ratings:
    +2,504 / 17 / -0
    My Motion Simulator:
    6DOF
    Can you share your setup file?
    I will test it later.
  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

    Attached Files:

    • Like Like x 1
  19. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    2,095
    Location:
    Portugal
    Balance:
    14,900Coins
    Ratings:
    +2,504 / 17 / -0
    My Motion Simulator:
    6DOF
    You are using 3 poses from motion. They might cause interference.
    But I can't open the file.... that's strange. There's a bug somewhere, that doesn't allow me to open the file o_O

    I see that you use in the rig those 3 poses from motion. One from air, one from ground and one with both and the loops.
  20. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    2,095
    Location:
    Portugal
    Balance:
    14,900Coins
    Ratings:
    +2,504 / 17 / -0
    My Motion Simulator:
    6DOF
    @hexpod ,

    I opened the file.
    You are using an huge resolution for my laptop... All windows out of range.

    But here:
    Sem nome.jpg
    You have loops generating values on the pose that is used in the rig.