Welcome to Keen Software House Forums! Log in or Sign up to interact with the KSH community.
  1. You are currently browsing our forum as a guest. Create your own forum account to access all forum functionality.

Rotor.UpperLimit does not return value

Discussion in 'Programming Questions and Suggestions' started by Hellothere!, Jan 31, 2015.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. Hellothere! Apprentice Engineer

    Messages:
    412
    I'm working on a script to make a rotor (called MagRotor) turn 45° each time the script is run. This is what it currently looks like:

    void Main()
    First off, I know, that this is not complete. I will still need a trigger that sets the limit back to zero, once past 360 degrees, however, that is not the issue.

    My problem is, that
    always ends up with a=0.

    The line with

    seems to work fine though (which means that the upper limit always gets set to 45°, no matter what it was previously.)

    What am I doing wrong?
     
  2. Phoera Senior Engineer

    Messages:
    1,713
    try GetValue
     
  3. Hellothere! Apprentice Engineer

    Messages:
    412
    I tried this one

    and this one

    Both time I got errors. How would the line be correct? And is there any place where you can find information on how all the classes and commands should be handled?

    Edit: Found it.

    It's
     
    Last edited by a moderator: Feb 1, 2015
Thread Status:
This last post in this thread was made more than 31 days old.