Cleanup make includes and formatting rules (#1860)
* Draft cleanup of the folder definition mess * Move old startup * Fixup! broken hacky includes * Update Makefile * Update Makefile * Update Makefile * Bulk format * Who knew, header guards are a wise idea * Squash some sizing warnings * Drop broken usb stack * Fix BLE headers to be sensible * Cleaning up proper c styling * We have newer clang, it does bracketing now * Run clang-format brackets * We can drop the old messy bracket-checker with newer clang format * WiP formatter * Align grids of scripts by right side Massively easier to read in nearly all cases * Excempt the table for compression from formatter
This commit is contained in:
@@ -124,10 +124,11 @@ template <class T, T Kp, T Ki, T Kd, T integral_limit_scale> struct PID {
|
||||
T output = kp_result + ki_result + kd_result;
|
||||
|
||||
// Restrict to max / 0
|
||||
if (output > max_output)
|
||||
if (output > max_output) {
|
||||
output = max_output;
|
||||
else if (output < 0)
|
||||
} else if (output < 0) {
|
||||
output = 0;
|
||||
}
|
||||
|
||||
// Save target_delta to previous target_delta
|
||||
previous_error_term = target_delta;
|
||||
|
||||
Reference in New Issue
Block a user