Run clang-format on the entire repo
This patch clang-formats the entire repo. Third-party code is
excluded.
I needed to fix up the .clang-format file so that all the header
includes are ordered properly. I could have sworn that it used to work
without the extra modification, but I guess not.
Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: I64bb9f2c795401393f9dfe2fefc4f04cb36b52f6
diff --git a/motors/simpler_receiver.cc b/motors/simpler_receiver.cc
index c3fcec9..808fb83 100644
--- a/motors/simpler_receiver.cc
+++ b/motors/simpler_receiver.cc
@@ -3,6 +3,7 @@
#include <inttypes.h>
#include <stdio.h>
+
#include <atomic>
#include <chrono>
#include <cmath>
@@ -43,20 +44,25 @@
chrono::duration_cast<chrono::nanoseconds>(
chrono::duration<float>(::motors::seems_reasonable::kDt)),
::motors::seems_reasonable::kRobotRadius,
- ::motors::seems_reasonable::kWheelRadius, ::motors::seems_reasonable::kV,
+ ::motors::seems_reasonable::kWheelRadius,
+ ::motors::seems_reasonable::kV,
::motors::seems_reasonable::kHighGearRatio,
- ::motors::seems_reasonable::kLowGearRatio, ::motors::seems_reasonable::kJ,
- ::motors::seems_reasonable::kMass, kThreeStateDriveShifter,
- kThreeStateDriveShifter, true /* default_high_gear */,
- 0 /* down_offset */, 0.8 /* wheel_non_linearity */,
- 1.2 /* quickturn_wheel_multiplier */, 1.5 /* wheel_multiplier */,
+ ::motors::seems_reasonable::kLowGearRatio,
+ ::motors::seems_reasonable::kJ,
+ ::motors::seems_reasonable::kMass,
+ kThreeStateDriveShifter,
+ kThreeStateDriveShifter,
+ true /* default_high_gear */,
+ 0 /* down_offset */,
+ 0.8 /* wheel_non_linearity */,
+ 1.2 /* quickturn_wheel_multiplier */,
+ 1.5 /* wheel_multiplier */,
};
return kDrivetrainConfig;
};
-
::std::atomic<PolyDrivetrain<float> *> global_polydrivetrain{nullptr};
// Last width we received on each channel.