Replace use of deprecated C Standard library headers in C++ code.
Change-Id: I9fa6630c7e4bdb2897df34d417635d8c7d8253bc
Signed-off-by: Tyler Chatow <tchatow@gmail.com>
diff --git a/y2020/constants.h b/y2020/constants.h
index 85f9768..77f78f4 100644
--- a/y2020/constants.h
+++ b/y2020/constants.h
@@ -1,10 +1,9 @@
#ifndef y2020_CONSTANTS_H_
#define y2020_CONSTANTS_H_
-#include <math.h>
-#include <stdint.h>
-
#include <array>
+#include <cmath>
+#include <cstdint>
#include "frc971/constants.h"
#include "frc971/control_loops/static_zeroing_single_dof_profiled_subsystem.h"
@@ -191,10 +190,11 @@
struct ShotParams {
// Measured in radians
double hood_angle;
- // Angular velocity in radians per second of the slowest (lowest) wheel in the kicker.
- // Positive is shooting the ball.
+ // Angular velocity in radians per second of the slowest (lowest) wheel in
+ // the kicker. Positive is shooting the ball.
double accelerator_power;
- // Angular velocity in radians per seconds of the flywheel. Positive is shooting.
+ // Angular velocity in radians per seconds of the flywheel. Positive is
+ // shooting.
double finisher_power;
static ShotParams BlendY(double coefficient, ShotParams a1, ShotParams a2) {
@@ -207,8 +207,7 @@
};
// { distance_to_target, { hood_angle, accelerator_power, finisher_power }}
- InterpolationTable<ShotParams>
- shot_interpolation_table;
+ InterpolationTable<ShotParams> shot_interpolation_table;
};
// Creates (once) a Values instance for ::aos::network::GetTeamNumber() and