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

Universial Serial Output USO Format

Discussion in 'SimTools compatible interfaces' started by Chewe, Aug 16, 2008.

  1. Chewe

    Chewe New Member

    Joined:
    Sep 24, 2007
    Messages:
    15
    Balance:
    - 19Coins
    Ratings:
    +0 / 0 / -0
    Hi all, i'm trying to communicate to a COM1 to two servos.

    As rNr chair i need the instructions have a simple format consisting of a sync byte (always ASCII 255), the servo number (0-254), and relative position (0-254, where 127 is centered).

    I cannot find the synthax to use universal serial output to send the appropriate three bytes (unsigned chars in C parlance).

    From rNr i thought it should be ~255~~0~~x~ but it doesn't work. Also i've applied a 127 sum on byte char x variable.

    Any help would be great, i'm really stuck.
  2. Chewe

    Chewe New Member

    Joined:
    Sep 24, 2007
    Messages:
    15
    Balance:
    - 19Coins
    Ratings:
    +0 / 0 / -0
    Hi sirnoname!

    Thankyou for your work/help! I'm using x-sim public 1.6.9. For now i didn't plug any game. Just started profiler and tried to move servos through sliders above (move simulator) button. I get target.x update but none value update on simulator X value....

    where can i find new version to download? Should I have to update to 1.8 through PLUGINUPDATE.ZIP? Could I apply to x-sim2 beta testing? :clap:

    should this synthax be fine?

    ~255~~1~~x~ (without caps?)

    Cheers
  3. Chewe

    Chewe New Member

    Joined:
    Sep 24, 2007
    Messages:
    15
    Balance:
    - 19Coins
    Ratings:
    +0 / 0 / -0
    How fool i am!!!

    The problem was that i didn't push (START) Button!!

    Now i'm talking to 1 servo, i'm going forward to talk to second axis and get some input from LFS force sender.

    I can't wait to see the servos working like on rNr simulation vr simulation!!

    Cheers
  4. egoexpress

    egoexpress Active Member

    Joined:
    Dec 13, 2006
    Messages:
    3,839
    Location:
    Germany - Frankfurt/M
    Balance:
    421Coins
    Ratings:
    +10 / 1 / -0
    When I've connected my first DIY RnR circuit board to the Profiler, I've made the same error.
    But in my case, I've resoldered nearly each part (including the smd ones) onto the circuit board once again before I've noticed the 'start' button :lol:

    Have fun!

    Regards
    Christian
  5. Chewe

    Chewe New Member

    Joined:
    Sep 24, 2007
    Messages:
    15
    Balance:
    - 19Coins
    Ratings:
    +0 / 0 / -0
    I've nearly cum...

    It's really nice when you see the job done on x-sim working out servo movements with washout and all. Nearly 3 years ago i did some vb programation around LFS that got out gdata to servos, maybe a page of code. I wonder the quantity of time being developed on this one!

    I will be looking to rocking promise of beta2. Is it going to be able to do some 6dof? it would be great to see some geek working out that stewart 6dof project 10 year old code...

    Again, it's been a pleasure to play with it. Hope be able soon to show some footage.