Skip to content

Commit

Permalink
revert sampling rate change
Browse files Browse the repository at this point in the history
  • Loading branch information
ahiuchingau committed Oct 7, 2024
1 parent 5b80425 commit cb3bed8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ static constexpr uint32_t STREAM_TASK_DEPTH = 200;
static StaticTask_t stream_task_buffer;
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
static std::array<StackType_t, STREAM_TASK_DEPTH> stream_task_stack;
static constexpr uint32_t FREQ_MS = 10;
static constexpr uint32_t FREQ_MS = 1;

static void run_stallguard_task(void* arg) {
auto* interface = static_cast<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ void HAL_SPI_ErrorCallback(SPI_HandleTypeDef *hspi)
bool motor_spi_sendreceive(
MotorID motor_id, uint8_t *txData, uint8_t *rxData, uint16_t size
) {
const TickType_t max_block_time = pdMS_TO_TICKS(10);
const TickType_t max_block_time = pdMS_TO_TICKS(1);
uint32_t notification_val = 0;

if (!_spi.initialized || (_spi.task_to_notify != NULL) || (size > MOTOR_MAX_SPI_LEN)) {
Expand Down

0 comments on commit cb3bed8

Please sign in to comment.