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

Question axis directions

Discussion in 'DIY Motion Simulator Building Q&A / FAQ' started by Arazok, Jul 14, 2018.

  1. Arazok

    Arazok Member

    Joined:
    Mar 26, 2018
    Messages:
    172
    Occupation:
    Computer scientist
    Location:
    Germany
    Balance:
    733Coins
    Ratings:
    +30 / 0 / -0
    My Motion Simulator:
    2DOF
    Hi,
    my project is making progress, my 2 pgsaw motors arrived. Now my problem:
    In SimTool I configured the axis and made an output test. so far so good, so when I am testing pitch, both lever on the motors move up or down, depending if pitch is negative or positive on the slider.
    when testing with LFS, and accelarate or brake the car, the two motors move in different directions, one up, the other down (like a roll).

    why that ?
    can someone help, pls ?
  2. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,554
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    145,142Coins
    Ratings:
    +10,780 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
  3. Arazok

    Arazok Member

    Joined:
    Mar 26, 2018
    Messages:
    172
    Occupation:
    Computer scientist
    Location:
    Germany
    Balance:
    733Coins
    Ratings:
    +30 / 0 / -0
    My Motion Simulator:
    2DOF
    yes, noorbeast, I know the DIR checkbox and I used it already. But I am now irritated, how to setup and configure the axis. so that they are correct working in the output test of Simtools or with LFS ?
    in the end, I want to play with PC2 and my PS4, but i am still in construction phase with a dummy setup and parts of Lego
  4. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,554
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    145,142Coins
    Ratings:
    +10,780 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
  5. Arazok

    Arazok Member

    Joined:
    Mar 26, 2018
    Messages:
    172
    Occupation:
    Computer scientist
    Location:
    Germany
    Balance:
    733Coins
    Ratings:
    +30 / 0 / -0
    My Motion Simulator:
    2DOF
  6. Arazok

    Arazok Member

    Joined:
    Mar 26, 2018
    Messages:
    172
    Occupation:
    Computer scientist
    Location:
    Germany
    Balance:
    733Coins
    Ratings:
    +30 / 0 / -0
    My Motion Simulator:
    2DOF
    So here comes my problem:
    This is my config, only surge configured:
    config_sway.jpg
    config_interface.jpg

    Then I did output testing:
    axis_testing.jpg axis_testing2.jpg

    So when Surge is put to the right, one axis goes left in the "Virtual Axis" menu, the other one right.
    The motors in real life move in the same direction, the (dummy) sim is moving up.

    motors.jpg
    These are pgsaw motors, where one gear was turned to the other side.

    Now, when starting LFS, the virtual axis show a different behaviour, both virtual axis move to the left (when accelerating) and to the right when braking, but the motors in real life move in opposite direction, one up, onde down, like a roll force.
    Here are pics attached:
    game_manager.jpg accelarating.jpg braking.jpg

    So, do I need to ste the "dir" flag for one of the motors ?
    In a different thread, there was said, that for surge and pitch either both direction flags are set or unset.

    Any help ?
    Thanks in advance !
    • Agree Agree x 1
    Last edited: Jul 17, 2018
  7. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,554
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    145,142Coins
    Ratings:
    +10,780 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Yes you can use the Dir flag, but it sounds like you could just swap the wires around on one motor, as it seems like one is reversed.
  8. Arazok

    Arazok Member

    Joined:
    Mar 26, 2018
    Messages:
    172
    Occupation:
    Computer scientist
    Location:
    Germany
    Balance:
    733Coins
    Ratings:
    +30 / 0 / -0
    My Motion Simulator:
    2DOF

    mmh, but then the "setup" in the SMC3 utility will fail, as motor does not follow the line, right ?
    Or do I miss anything ?
  9. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,554
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    145,142Coins
    Ratings:
    +10,780 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    I don't use it but the SMC3 utility should work on the position of the motor, not which way it is wired.
  10. Arazok

    Arazok Member

    Joined:
    Mar 26, 2018
    Messages:
    172
    Occupation:
    Computer scientist
    Location:
    Germany
    Balance:
    733Coins
    Ratings:
    +30 / 0 / -0
    My Motion Simulator:
    2DOF
    Ok, I will check what happens, when I swap the wires for one motor and let you know...
  11. Arazok

    Arazok Member

    Joined:
    Mar 26, 2018
    Messages:
    172
    Occupation:
    Computer scientist
    Location:
    Germany
    Balance:
    733Coins
    Ratings:
    +30 / 0 / -0
    My Motion Simulator:
    2DOF
    So, as expected, this won‘t work with SMC3 code, as motor is moving in opposite direction when setting a position...
  12. MarkusB

    MarkusB Well-Known Member Gold Contributor

    Joined:
    Jun 30, 2015
    Messages:
    552
    Location:
    Germany
    Balance:
    4,212Coins
    Ratings:
    +594 / 2 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, Motion platform
    So then just set only one dir flag for pitch and surge, and set both (or none) for roll and sway. For some reason I also have to do it this way, and for me it works.
  13. Arazok

    Arazok Member

    Joined:
    Mar 26, 2018
    Messages:
    172
    Occupation:
    Computer scientist
    Location:
    Germany
    Balance:
    733Coins
    Ratings:
    +30 / 0 / -0
    My Motion Simulator:
    2DOF
    yes, setting the dir flag for surge and pitch for one axis is the solution.
    My explanation for this: I have 2 identical pgsaw motors, but then I turned the gear, so that the shaft is on the other side. result: two symmetrical motors.
    But as the hallsensor also switched to the other side of one motor, I had to switch the cable for this motor to let SMC3 code working correctly.
    Now you can either also switch the cable on the hallsensor from + to minus and vice versa, but this was not working for me, then I have no signal at all. So in the end, I set the dir flag and it works.

    By the way, I got different results in Output testing and LFS as there a 2 profiles. One „default“ and one „Life for Speed“. And if LFS is running, this profile is taken, even if you have „default“ selected in the GameManager.

    cheers Dirk