Nest all namespaces
The compiler supports this now. We can type less going forward.
No functional changes.
Signed-off-by: Stephan Pleines <pleines.stephan@gmail.com>
Change-Id: I29d6fa4f9aacc0e381f1a7637294db0392466995
diff --git a/y2014_bot3/wpilib_interface.cc b/y2014_bot3/wpilib_interface.cc
index 22d372e..5640e50 100644
--- a/y2014_bot3/wpilib_interface.cc
+++ b/y2014_bot3/wpilib_interface.cc
@@ -57,8 +57,7 @@
using ::frc971::wpilib::LoopOutputHandler;
using std::make_unique;
-namespace y2014_bot3 {
-namespace wpilib {
+namespace y2014_bot3::wpilib {
double drivetrain_translate(int32_t in) {
return static_cast<double>(in) / (256.0 /*cpr*/ * 4.0 /*4x*/) *
@@ -357,7 +356,6 @@
}
};
-} // namespace wpilib
-} // namespace y2014_bot3
+} // namespace y2014_bot3::wpilib
AOS_ROBOT_CLASS(::y2014_bot3::wpilib::WPILibRobot);