From b854a09de0a28a65cab7bccd461e7b702582d3db Mon Sep 17 00:00:00 2001 From: Stedd Date: Sat, 21 Oct 2023 15:07:32 +0200 Subject: [PATCH] Changed index of Velocity matrix Compiler gave an error on "index out of bounds", have to test if turn controller is still working after this change. This is the first time i see this error,which leaves me a bit confused as of i see this now. --- motorControl.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/motorControl.ino b/motorControl.ino index 743be63..1869c87 100644 --- a/motorControl.ino +++ b/motorControl.ino @@ -76,7 +76,7 @@ void motors() { //Turn controller - TC_cont_out = PController(rem_turn_speed_ref, vel_Matrix[0][1], K_TC); + TC_cont_out = PController(rem_turn_speed_ref, vel_Matrix[1][0], K_TC); //Sum speed command for motors