From 166728887c29410a9485c8ee2c7db2bd75683f25 Mon Sep 17 00:00:00 2001 From: NicoOR Date: Thu, 10 Oct 2024 20:42:59 -0500 Subject: [PATCH] quick and dirty change for autocross --- Application/Relay/can_relay.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Application/Relay/can_relay.cpp b/Application/Relay/can_relay.cpp index 5351153..9d8cd28 100644 --- a/Application/Relay/can_relay.cpp +++ b/Application/Relay/can_relay.cpp @@ -26,7 +26,7 @@ namespace application{ uint8_t row; uint8_t column; data.RawRow(message_row); - for(int i = 0; i < messageSize; i++){ + for(int i = 0; i < 5; i++){//partial send for autocross row = i/2; //integer division by default floors column = (i%2) * 4; //the column which the row goes into is essentially sinusoidal bitSet(message_row[i], &message[row][column]); @@ -37,10 +37,10 @@ namespace application{ void Can_Relay::Send_Messages(){ can_bus_->ChangeArbId(0x417); - for(int i = 0; i < kRows; i++){ + for(int i = 0; i < 3; i++){ can_bus_->ChangeArbId(0x417 + i); //each message has a unique ID can_bus_->Transmit(message[i]); - //printf("Sending Message! \n"); + printf("Sending Message! \n"); } }