Fix all the samples to build with the C++11/14 language features (constexpr)

This commit is contained in:
Brad Miller
2014-11-11 09:15:46 -05:00
parent 68ba9bfeae
commit 1d0a6b8ace
7 changed files with 13 additions and 12 deletions

View File

@@ -12,8 +12,8 @@ private:
double driveForwardSpeed;
double distance;
double error;
static const double TOLERANCE = .1;
static const double KP = -1.0 / 5.0;
static constexpr double TOLERANCE = .1;
static constexpr double KP = -1.0 / 5.0;
void init(double dist, double maxSpeed);
public:
DriveForward();