add .clang-format
Change-Id: I6627b5569c2e0f730be7331403218b823a2c622f
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/pid/util.cpp b/pid/util.cpp
index 79da7e1..9004059 100644
--- a/pid/util.cpp
+++ b/pid/util.cpp
@@ -14,11 +14,11 @@
* limitations under the License.
*/
+#include "ec/pid.hpp"
+
#include <cstring>
#include <iostream>
-#include "ec/pid.hpp"
-
void InitializePIDStruct(ec::pid_info_t* info, ec::pidinfo* initial)
{
std::memset(info, 0x00, sizeof(ec::pid_info_t));
@@ -36,12 +36,10 @@
info->slew_pos = initial->slew_pos;
}
-void DumpPIDStruct(ec::pid_info_t *info)
+void DumpPIDStruct(ec::pid_info_t* info)
{
- std::cerr << " ts: " << info->ts
- << " p_c: " << info->p_c
- << " i_c: " << info->i_c
- << " ff_off: " << info->ff_off
+ std::cerr << " ts: " << info->ts << " p_c: " << info->p_c
+ << " i_c: " << info->i_c << " ff_off: " << info->ff_off
<< " ff_gain: " << info->ff_gain
<< " i_lim.min: " << info->i_lim.min
<< " i_lim.max: " << info->i_lim.max
@@ -50,8 +48,7 @@
<< " slew_neg: " << info->slew_neg
<< " slew_pos: " << info->slew_pos
<< " last_output: " << info->last_output
- << " integral: " << info->integral
- << std::endl;
+ << " integral: " << info->integral << std::endl;
return;
}