aboutsummaryrefslogtreecommitdiff
path: root/robot/mode_chrg.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-06-29 18:58:28 +0200
committerlonkaars <loek@pipeframe.xyz>2022-06-29 18:58:28 +0200
commit92157948b61c866d842519a375000b3f812d2f12 (patch)
treee7e8db92bc303c08b14ccd15663729df2ce3bb42 /robot/mode_chrg.c
parenta93bcdf20962a9fe32c1dd19aa820551ac13212d (diff)
`make format`
Diffstat (limited to 'robot/mode_chrg.c')
-rw-r--r--robot/mode_chrg.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/robot/mode_chrg.c b/robot/mode_chrg.c
index dac6174..f75ce5f 100644
--- a/robot/mode_chrg.c
+++ b/robot/mode_chrg.c
@@ -1,7 +1,7 @@
#include "mode_chrg.h"
-#include "io.h"
#include "../shared/bool.h"
#include "hypervisor.h"
+#include "io.h"
#include "mode_grid.h"
#include "modes.h"
#include "movement.h"
@@ -53,7 +53,7 @@ bool w2_charge_cross_walk() {
void w2_mode_chrg() {
static unsigned int last_proportional = 0;
static long integral = 0;
- static bool g_w2_chrg_aligned = false;
+ static bool g_w2_chrg_aligned = false;
if (g_w2_chrg_aligned) {
if (g_w2_target_area == W2_AREA_CHRG) return;
@@ -88,7 +88,7 @@ void w2_mode_chrg() {
// Compute the actual motor settings. We never set either motor
// to a negative value.
-
+
const int max = 60;
if (power_difference > max) power_difference = max;
if (power_difference < -max) power_difference = -max;
@@ -126,4 +126,3 @@ void w2_mode_chrg() {
}
}
}
-