Example #1
0
    public int set_move(YServoMove newval)
    {
        string rest_val;

        rest_val = (newval.target).ToString() + ":" + (newval.ms).ToString();
        return(_setAttr("move", rest_val));
    }
Example #2
0
 public YServo(string func)
     : base("Servo", func)
 {
     _logicalName     = YServo.LOGICALNAME_INVALID;
     _advertisedValue = YServo.ADVERTISEDVALUE_INVALID;
     _position        = YServo.POSITION_INVALID;
     _range           = YServo.RANGE_INVALID;
     _neutral         = YServo.NEUTRAL_INVALID;
     _move            = new YServoMove();
 }
 public int set_move(YServoMove newval)
 {
   string rest_val;
   rest_val = (newval.target).ToString() + ":" + (newval.ms).ToString();
   return _setAttr("move", rest_val);
 }
Example #4
0
 public YServo(string func)
     : base("Servo", func)
 {
     _logicalName = YServo.LOGICALNAME_INVALID;
     _advertisedValue = YServo.ADVERTISEDVALUE_INVALID;
     _position = YServo.POSITION_INVALID;
     _range = YServo.RANGE_INVALID;
     _neutral = YServo.NEUTRAL_INVALID;
     _move = new YServoMove();
 }