コード例 #1
0
		public MoveRawCommand GetRawCommand()
		{
			MoveRawCommand rawCommand = new MoveRawCommand();
			for (int i = 0; i < m_ServosPositions.Length; i++)
			{
				double? servoPosition = m_ServosPositions[i];
				if (servoPosition != null)
				{
					rawCommand[i] = m_Servos[i].MilliSecForAngleDeg(servoPosition.Value);
				}
			}
			rawCommand.Speed = this.Speed;
			return rawCommand;
		}
コード例 #2
0
        public MoveRawCommand GetRawCommand()
        {
            MoveRawCommand rawCommand = new MoveRawCommand();

            for (int i = 0; i < m_ServosPositions.Length; i++)
            {
                double?servoPosition = m_ServosPositions[i];
                if (servoPosition != null)
                {
                    rawCommand[i] = m_Servos[i].MilliSecForAngleDeg(servoPosition.Value);
                }
            }
            rawCommand.Speed = this.Speed;
            return(rawCommand);
        }
コード例 #3
0
 internal void RunCommand(MoveRawCommand command)
 {
     this.RunCommand(command.GetCommandText());
 }
コード例 #4
0
		internal void RunCommand(MoveRawCommand command)
		{
			this.RunCommand(command.GetCommandText());
		}
コード例 #5
0
		public void RunCommand(MoveRawCommand command)
		{
			m_CommandRunner.RunCommand(command);
		}
コード例 #6
0
		private void Move()
		{
			MoveRawCommand moveCommand = new MoveRawCommand();

			moveCommand[ChannelId.Base] = this.BaseMilliSecs;
			moveCommand[ChannelId.Shoulder] = this.ShoulderMilliSecs;
			moveCommand[ChannelId.Elbow] = this.ElbowMilliSecs;
			moveCommand[ChannelId.WristUpDown] = this.WristTiltMilliSecs;

			m_SSC32Board.RunCommand(moveCommand);
		}
コード例 #7
0
 public void RunCommand(MoveRawCommand command)
 {
     m_CommandRunner.RunCommand(command);
 }