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.
This commit is contained in:
Stedd 2023-10-21 15:07:32 +02:00
parent 61684e11a6
commit b854a09de0
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ void motors() {
//Turn controller //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 //Sum speed command for motors