From 762fd9956d6eb47d0b49f3cc7b45bf25609908e1 Mon Sep 17 00:00:00 2001 From: owenpark Date: Thu, 26 Sep 2024 20:43:23 -0400 Subject: [PATCH] there are no CAN issues in mrover --- docs/getting-started/starter/servo/part2-can.md | 2 +- starter-projects/servo/receiver/Core/Src/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/getting-started/starter/servo/part2-can.md b/docs/getting-started/starter/servo/part2-can.md index cd859c5..2a341b4 100644 --- a/docs/getting-started/starter/servo/part2-can.md +++ b/docs/getting-started/starter/servo/part2-can.md @@ -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: diff --git a/starter-projects/servo/receiver/Core/Src/main.cpp b/starter-projects/servo/receiver/Core/Src/main.cpp index e51757c..8b08ea2 100644 --- a/starter-projects/servo/receiver/Core/Src/main.cpp +++ b/starter-projects/servo/receiver/Core/Src/main.cpp @@ -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;