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

@@ -13,7 +13,7 @@ private:
SpeedController* motor;
Potentiometer* pot;
static const double kP_real = 4, kI_real = 0.07,
static constexpr double kP_real = 4, kI_real = 0.07,
kP_simulation = 18, kI_simulation = 0.2;
public:

View File

@@ -13,7 +13,7 @@ private:
SpeedController* motor;
Potentiometer* pot; // TODO: Make Potentiometer
static const double kP_real = 1, kP_simulation = 0.05;
static constexpr double kP_real = 1, kP_simulation = 0.05;
public:
Wrist();