Split RobotDrive class into a class for each drive type (#552)

DiffDrive.CurvatureDrive (aka CheesyDrive) and KilloughDrive were also added.
This reorganization paves the way for SwerveDrive.
This commit is contained in:
Tyler Veness
2017-09-28 23:30:00 -07:00
committed by Peter Johnson
parent abb66d3e4b
commit 19addb04cf
18 changed files with 1790 additions and 1 deletions

View File

@@ -10,6 +10,7 @@
#include <memory>
#include <llvm/raw_ostream.h>
#include <support/deprecated.h>
#include "ErrorBase.h"
#include "MotorSafety.h"
@@ -30,7 +31,9 @@ class GenericHID;
* function (intended for hand created drive code, such as autonomous) or with
* the Tank/Arcade functions intended to be used for Operator Control driving.
*/
class RobotDrive : public MotorSafety, public ErrorBase {
class WPI_DEPRECATED("Use DifferentialDrive or MecanumDrive classes instead.")
RobotDrive : public MotorSafety,
public ErrorBase {
public:
enum MotorType {
kFrontLeftMotor = 0,