clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.
Change-Id: Icbc50d46e84ee7ef756705e2b19741439a325074
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/pid/ec/pid.cpp b/pid/ec/pid.cpp
index 6222f1a..762513a 100644
--- a/pid/ec/pid.cpp
+++ b/pid/ec/pid.cpp
@@ -109,8 +109,8 @@
coreContext.derivativeTerm = derivativeTerm;
// FF
- feedFwdTerm =
- (setpoint + pidinfoptr->feedFwdOffset) * pidinfoptr->feedFwdGain;
+ feedFwdTerm = (setpoint + pidinfoptr->feedFwdOffset) *
+ pidinfoptr->feedFwdGain;
coreContext.feedFwdTerm = feedFwdTerm;
@@ -134,8 +134,8 @@
if (pidinfoptr->slewNeg != 0.0f)
{
// Don't decrease too fast
- double minOut =
- pidinfoptr->lastOutput + pidinfoptr->slewNeg * pidinfoptr->ts;
+ double minOut = pidinfoptr->lastOutput +
+ pidinfoptr->slewNeg * pidinfoptr->ts;
coreContext.minOut = minOut;
@@ -147,8 +147,8 @@
if (pidinfoptr->slewPos != 0.0f)
{
// Don't increase too fast
- double maxOut =
- pidinfoptr->lastOutput + pidinfoptr->slewPos * pidinfoptr->ts;
+ double maxOut = pidinfoptr->lastOutput +
+ pidinfoptr->slewPos * pidinfoptr->ts;
coreContext.maxOut = maxOut;