AnimatLab  2
Test
FirmataPrismaticServo.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 
6 namespace RoboticsGUI
7 {
8  namespace RobotIOControls
9  {
10  namespace Firmata
11  {
12 
13  public class FirmataPrismaticServo : AnimatGUI.DataObjects.Robotics.MotorControlSystem
14  {
15 
16  public override string Description { get { return "Controls a standard servo motor for a prismatic joint using a Firmata controller"; } set { } }
17  public override string WorkspaceImageName{ get{return "RoboticsGUI.Graphics.DynamixelSmall.gif";}}
18  public override string ButtonImageName{ get{return "RoboticsGUI.Graphics.DynamixelLarge.gif";}}
19  public override string PartType { get { return "FirmataPrismaticServo"; } }
20  public override string ModuleName { get { return "RoboticsAnimatSim"; } }
21  protected override System.Type GetLinkedPartDropDownTreeType() { return typeof(AnimatGUI.TypeHelpers.DropDownTreeEditorNoFirstSelect); }
22 
23  public FirmataPrismaticServo(AnimatGUI.Framework.DataObject doParent)
24  : base(doParent)
25  {
26  m_strName = "Standard Prismatic Motor";
27 
28  m_aryCompatiblePartTypes.Clear();
29  m_aryCompatiblePartTypes.Add(typeof(AnimatGUI.DataObjects.Physical.Joints.Prismatic));
30  }
31 
32  public override AnimatGUI.Framework.DataObject Clone(AnimatGUI.Framework.DataObject doParent, bool bCutData, AnimatGUI.Framework.DataObject doRoot)
33  {
34  FirmataPrismaticServo doController = new FirmataPrismaticServo(doParent);
35  return doController;
36  }
37 
38  }
39  }
40  }
41 }