Skip to content

Commit

Permalink
there are no CAN issues in mrover
Browse files Browse the repository at this point in the history
  • Loading branch information
owenpark8 committed Sep 27, 2024
1 parent c6d14fc commit 762fd99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/getting-started/starter/servo/part2-can.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ for this information.
#### TODO 4-6: Send a CAN message to rotate the servo
Now that we have the CAN message header for all the messages we want to send, we can send the
message using the `HAL_FDCAN_AddMessageToTxFifoQ` function. This function takes in the handle for
the FDCAN peripheral, the message header, the message data, and the message data.
the FDCAN peripheral, the message header, and the message data.

Here is an example of how to send a CAN message to turn the servo to 45 degrees:

Expand Down
2 changes: 1 addition & 1 deletion starter-projects/servo/receiver/Core/Src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ static void MX_CAN_Init(void)
/* USER CODE BEGIN CAN_Init 2 */
CAN_FilterTypeDef sFilterConfig;

uint32_t filter_id = 0x2024;
uint32_t filter_id = 2024;
uint32_t filter_mask = 0xFFFF;

sFilterConfig.FilterBank = 0;
Expand Down

0 comments on commit 762fd99

Please sign in to comment.