示例#1
0
 /// <summary>
 /// Initializes a new instance of the Servo class for the specified CANipede and PWM channel.
 /// </summary>
 /// <param name="canipede">The CANipede associated with this servo.</param>
 /// <param name="pwmChannel">The channel of the PWM output the servo is connected to (1-8).</param>
 public Servo(Canipede canipede, int pwmChannel)
 {
     this.canipede = canipede;
     this.pwmChannel = pwmChannel;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the Victor class for the specified CANipede and PWM channel.
 /// </summary>
 /// <param name="canipede">The CANipede instance associated with this Victor.</param>
 /// <param name="pwmChannel">The PWM output channel for this Victor (1-8).</param>
 public Victor(Canipede canipede, int pwmChannel)
 {
     this.canipede = canipede;
     this.pwmChannel = pwmChannel;
     Throttle = 0;
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the Solenoid class for the specified CANipede and output channel.
 /// </summary>
 /// <param name="canipede">The CANipede associated with this servo</param>
 /// <param name="channel">The solenoid channel used (1-8).</param>
 public Solenoid(Canipede canipede, int channel)
 {
     this.canipede = canipede;
     this.channel = channel;
 }
示例#4
0
 /// <summary>
 /// Initializes a new instance of the Relay class for the specified CANipede and relay channel.
 /// </summary>
 /// <param name="canipede">A reference to a Canipede instance</param>
 /// <param name="channel">The relay channel used (1-4).</param>
 public Relay(Canipede canipede, int channel)
 {
     this.canipede = canipede;
     this.channel = channel;
 }