Add classes for VictorSP and TalonSRX PWM control.

Update documentation for existing classes to better describe what
they control

Change-Id: I1932b39a3f082c2eb57f41edb4ba55c73cce2938
This commit is contained in:
Joe Ross
2014-12-05 09:19:27 -08:00
committed by Brad Miller
parent d986ffac81
commit 52408e2658
15 changed files with 129 additions and 8 deletions

View File

@@ -12,7 +12,8 @@ import edu.wpi.first.wpilibj.communication.UsageReporting;
import edu.wpi.first.wpilibj.livewindow.LiveWindow;
/**
* Texas Instruments Jaguar Speed Controller as a PWM device.
* Texas Instruments / Vex Robotics Jaguar Speed Controller as a PWM device.
* @see CANJaguar CANJaguar for CAN control
*/
public class Jaguar extends SafePWM implements SpeedController {

View File

@@ -12,7 +12,7 @@ import edu.wpi.first.wpilibj.communication.UsageReporting;
import edu.wpi.first.wpilibj.livewindow.LiveWindow;
/**
* CTRE Talon Speed Controller
* Cross the Road Electronics (CTRE) Talon and Talon SR Speed Controller
*/
public class Talon extends SafePWM implements SpeedController {

View File

@@ -0,0 +1,23 @@
/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008-2014. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj;
/**
* Cross the Road Electronics (CTRE) Talon SRX Speed Controller with PWM control
* @see CANTalon CANTalon for CAN control of Talon SRX
*/
public class TalonSRX extends Talon {
/**
* Constructor.
*
* @param channel The PWM channel that the Talon SRX is attached to.
*/
public TalonSRX(final int channel) {
super(channel);
}
}

View File

@@ -12,7 +12,10 @@ import edu.wpi.first.wpilibj.communication.UsageReporting;
import edu.wpi.first.wpilibj.livewindow.LiveWindow;
/**
* VEX Robotics Victor Speed Controller
* VEX Robotics Victor 888 Speed Controller
*
* The Vex Robotics Victor 884 Speed Controller can also be used with this
* class but may need to be calibrated per the Victor 884 user manual.
*/
public class Victor extends SafePWM implements SpeedController {

View File

@@ -0,0 +1,24 @@
/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008-2014. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj;
/**
* Vex Robotics Victor SP Speed Controller
*/
public class VictorSP extends Talon {
/**
* Constructor.
*
* @param channel The PWM channel that the VictorSP is attached to.
*/
public VictorSP(final int channel) {
super(channel);
}
}