Skip to content

Commit

Permalink
quick and dirty change for autocross
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoOhR committed Oct 11, 2024
1 parent b16da65 commit 1667288
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Application/Relay/can_relay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand All @@ -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");
}
}

Expand Down

0 comments on commit 1667288

Please sign in to comment.